Answers for "selenium clicking on the submit button python"

0

click button in selenium python

url = "https://yahoo.com"
driver = Firefox(executable_path="geckodriver.exe")
driver.get(url)
driver.find_element_by_css_selector("button.btn:nth-child(5)").click()
Posted by: Guest on October-20-2021
0

python selenium click on agree button

# credit to the Stack Overflow user in the source link

from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC

driver = webdriver.Chrome()
driver.get("put_your_URL_here")

# NOTE: actual name of the button is required so remember to change 
# the name from "Accept" to the proper button name
WebDriverWait(self.driver, 10).until(EC.element_to_be_clickable((By.XPATH, "//button[text()='Accept']"))).click()
Posted by: Guest on November-12-2021

Code answers related to "selenium clicking on the submit button python"

Python Answers by Framework

Browse Popular Code Answers by Language