1
I’m trying to log in to www.pactpub.com
using the following idea
def setUp(self):
self.driver = webdriver.Chrome(executable_path='C:\_workspace\projects\Packtpub\chromedriver')
self.driver.get("https://www.packtpub.com")
time.sleep(5) # Let the user actually see something!
def test_login(self):
driver = self.driver
driver.maximize_window()
login1 = driver.find_element_by_id("email-wrapper")
login1.find_element_by_id("email").send_keys("my_login")
but he can’t find the email field
and returns the error:
Elementnotvisibleexception: Message: element not Visible
how can I get around?
You need to fix the example. No you instantiate the
WebDriverWait
in the wait variable and below uses a variablewait
. In case thewait
would be theespera
.– Guilherme IA