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) WebDriverException: Can't load the profile. Profile Dir: C:\Users\ADMINI~1\AppData\Local\Temp\2\tmpzuvl2fst Firefox output: None I did download and install the Selenium module with pip as you did. ![]() It must be coorrect, otherwise I will get error. ![]() And I rename my code to test_log.py as yours. And I copy the gecodriver.exe (64-bit) to the dir where the test_log.py is. Then I open the cmd as Admin and start the code as you described.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |