Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 99415

How do I find an element by its id in Selenium?

$
0
0

This is my code:

I have used the find element by id RESULT_RadioButton-7_0 but I am getting the following error:

from selenium import webdriver
from selenium.webdriver.common.by import By

driver = webdriver.Chrome(executable_path="/home/real/Desktop/Selenium_with_python/SeleniumProjects/chromedriver_linux64/chromedriver")

driver.get("https://fs2.formsite.com/meherpavan/form2/index.html?153770259640")


radiostatus = driver.find_element(By.ID, "RESULT_RadioButton-7_0").click()

Viewing all articles
Browse latest Browse all 99415

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>