log into twitter using selenium python

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


log into twitter using selenium python



I am trying to log into twitter by using selenium. I am using a Python program.


browser = webdriver.Chrome(chromedriver)
browser.get('https://twitter.com/login')

username = browser.find_element_by_class_name("js-username-field")
username.send_keys("admin")
password = browser.find_element_by_class_name("js-password-field")
password.send_keys("admin")

signin_click = WebDriverWait(self.driver, 500000).until(
EC.element_to_be_clickable((By.XPATH, '//*[@id="page-container"]/div/div[1]/form/div[2]/button'))
)
signin_click.click()



I am using correct class name for username and password. But, it is showing,


selenium.common.exceptions.WebDriverException: Message: unknown error: call function result missing 'value'



I also tried to do it with name attribute ,


name


username = browser.find_element_by_name("session[username_or_email]")
username.send_keys("admin")
password = browser.find_element_by_name("session[password]")
password.send_keys("admin")



The error was, element not visible


element not visible




2 Answers
2



I am using latest chromedriver and it is working fine.



I'm not getting any errors using Firefox - maybe update your Chrome version?






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Arduino Mega cannot recieve any sketches, stk500_recv() programmer is not responding

Visual Studio Code: How to configure includePath for better IntelliSense results

C++ virtual function: Base class function is called instead of derived