Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <input type="image" src="/images/btn_next.png">
- input[type="image" i]
- {
- cursor: pointer;
- }
- driver.find_element_by_xpath('//input[@type="image"][@src="/images/btn_next.png"]').click()
- from selenium.webdriver.common.by import By
- from selenium.webdriver.support.ui import WebDriverWait
- from selenium.webdriver.support import expected_conditions as EC
- WebDriverWait(driver,20).until(EC.element_to_be_clickable((By.XPATH,'//input[@type="image"][@src="/images/btn_next.png"]'))).click()
- driver.execute_script("arguments[0].click();",driver.find_element_by_xpath('//input[@type="image"][@src="/images/btn_next.png"]'))
- driver.find_element_by_css_selector("input[src='/images/btn_next.png'][type='image']").click()
- driver.find_element_by_xpath("//input[@src='/images/btn_next.png' and @type='image']").click()
- WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.CSS_SELECTOR, "input[src='/images/btn_next.png'][type='image']"))).click()
- WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.XPATH, "//input[@src='/images/btn_next.png' and @type='image']"))).click()
- from selenium.webdriver.support.ui import WebDriverWait
- from selenium.webdriver.common.by import By
- from selenium.webdriver.support import expected_conditions as EC
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement