make sure you import By from selenium.webdriver.common.by then you need to instantiate it, do something like: identifier = By there is no find_element_by_name now, there's only find_element or find_elements when you do find_element, you can specify how you want to find the element. by id, name, etc read up the documentation of the function you'll use send_keys using something like this: driver.find_element(identifier.NAME, "username").send_keys(username) driver.find_element(identifier.NAME, "password").send_keys(password)
Nice One..
instagram is not taking any input...i think send_keys is not working please help!!
make sure you import By from selenium.webdriver.common.by
then you need to instantiate it, do something like:
identifier = By
there is no find_element_by_name now, there's only find_element or find_elements
when you do find_element, you can specify how you want to find the element. by id, name, etc read up the documentation of the function
you'll use send_keys using something like this:
driver.find_element(identifier.NAME, "username").send_keys(username)
driver.find_element(identifier.NAME, "password").send_keys(password)
Same here