Answer the question
In order to leave comments, you need to log in
What to do if it does not find a field by name in selenium?
here is the code:
from selenium.webdriver import Chrome
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import Select
driver=Chrome()
driver.set_window_size(900,900)
url='https://vk.com/'
driver.get(url)
driver.switch_to.frame(driver.find_element_by_tag_name('iframe'))
a1=driver.find_element_by_name("email")
a1.send_keys('a')
Answer the question
In order to leave comments, you need to log in
Good evening.
For some reason, it gives out It's
element not interactable
also interesting why. Through id everything works fine
url='https://vk.com/'
driver.get(url)
elem = driver.find_element_by_id("index_email")
elem.send_keys("name")
driver.switch_to.frame(driver.find_element_by_tag_name('iframe'))
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question