Category : clickable

I have been trying to make this clickable and I just cannot understand what I am doing wrong. I am also trying to induce webdriverwait, so that it is clicked when it appears. This is my code so far: def order(k): driver = webdriver.Chrome(os.getcwd()+"webdriverchromedriver.exe") driver.get("website.com/login-to-checkout") driver.find_element_by_id(‘i0116’).send_keys(k["email"]) driver.find_element_by_id(‘i0118’).send_keys(k["password"]) driver.find_element_by_id(‘idSIButton9’).click() delay() #sign in button driver.find_element_by_id(‘idSIButton9’).click() #Button below ..

Read more

I have not been able to figure out what is wrong, there are no errors and looks like it runs but the chrome window never opens and it just stays running on Spyder. I was trying to make a clickable button. class MyTest(object): def __init__(self): self.driver = webdriver.Chrome(os.getcwd()+"webdriverchromedriver.exe") def login_process(self): self.driver.get("htttps://website.com/gr") #successfully navigated to URL_1 ..

Read more

I keep getting this error: " AttributeError: ‘MyTest’ object has no attribute ‘query’ " I am trying to click a button that isn’t being clicked by my proccess. I have tried xpath id also. class MyTest(object): def __init__(self): self.driver = webdriver.Chrome(os.getcwd()+"webdriverchromedriver.exe") def login_process(self): self.driver.get("website.com/login") #successfully navigated to URL_1 if self.driver.find_element_by_name("loginfmt"): elem = self.driver.find_element_by_name("loginfmt") elem.clear() elem.send_keys(["email"]) ..

Read more