मैं कैसे --cookies-file=/path/to/cookies.txt
और अन्य की तरह कमांड लाइन विकल्प के साथ phantomjs शुरू करने के लिए नहीं मिल सकता है ...सेलेनियम में कमांडलाइन विकल्पों के साथ PhantomJS कैसे शुरू करें?
की कोशिश की driver = webdriver.PhantomJS('--cookies-file=/tmp/ph_cook.txt')
लेकिन कुछ नहीं।
अज्ञात कारण के लिए add_cookie
लॉग इन रखने के लिए काम नहीं करते हैं।
मैं इस तरह phantomjs शुरू करने की कोशिश:
driver = webdriver.PhantomJS(executable_path = "phantomjs --cookies-file=/tmp/ph_cook.txt --webdriver")
लेकिन हो रही त्रुटि:
raise WebDriverException("Unable to start phantomjs with ghostdriver.", e)
selenium.common.exceptions.WebDriverException: Message: Unable to start phantomjs with ghost driver.
क्या यह http://stackoverflow.com/q/17788223/3124333 का डुप्लिकेट है? – SiKing
@SiKing गलत भाषा, लेकिन मुझे अभी तक डुप्लिकेट नहीं मिला है। हालांकि होना चाहिए। –
@ArtjomB। यह सब सेलेनियम है, भाषा बाइंडिंग से कोई फर्क नहीं पड़ता? – SiKing