Then I open the cmd as Admin and start the code as you described. And I copy the gecodriver.exe (64-bit) to the dir where the test_log.py is. And I rename my code to test_log.py as yours. It must be coorrect, otherwise I will get error. I did download and install the Selenium module with pip as you did. Profile Dir: C:\Users\ADMINI~1\AppData\Local\Temp\2\tmpzuvl2fst Firefox output: None WebDriverException: Can't load the profile. Here the out put after the browser closes: Soup = BeautifulSoup(browser.page_source, 'lxml') Submit = browser.find_element_by_css_selector('#SubButton > input') Password = browser.find_element_by_css_selector('#SubName > input') User_name = browser.find_element_by_css_selector('#SubID > input') # Activate Phantom and deactivate Chrome to not load browserĬaps = webdriver.DesiredCapabilities().FIREFOXīrowser = webdriver.Firefox(capabilities=caps) Profile Dir: C:\Users\ADMINI~1\AppData\Local\Temp\2\tmpk2k3o7ox Firefox output: None Runfile('D:/Temp/Selenium.py', wdir='D:/Temp')įile "C:\ProgramData\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 880, in runfileįile "C:\ProgramData\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfileĮxec(compile(f.read(), filename, 'exec'), namespace)įile "C:\ProgramData\Anaconda3\lib\site-packages\selenium\webdriver\firefox\webdriver.py", line 59, in _init_įile "C:\ProgramData\Anaconda3\lib\site-packages\selenium\webdriver\firefox\extension_connection.py", line 47, in _init_įile "C:\ProgramData\Anaconda3\lib\site-packages\selenium\webdriver\firefox\firefox_binary.py", line 64, in launch_browserįile "C:\ProgramData\Anaconda3\lib\site-packages\selenium\webdriver\firefox\firefox_binary.py", line 108, in _wait_until_connectable
0 Comments
Leave a Reply. |