-2
from selenium import webdriver
from selenium.webdriver import Firefox
import time
url = 'https://google.com'
driver = webdriver.Firefox()
driver.get(url)
time.sleep(10)
driver.find_element_by_class_name('gLFy').send_keys('Rodrigo')
print('Ok')
I need you to refresh the page when you can’t find the element
It is that I used only as an example this code, in case I am automating downloads there are times that the page does not load completely and have to give a refresh
– Rodrigo Zavan
and you already tried to use the
driver.refresh()
?– Juan Caio