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

Cant Find Element in Selenium Python

$
0
0

Hello I am trying to use selenium to find a button to click on. Below is a snippet of the HTML code i am working with.

<input type="button" id="runButton" class="button" value="Run Report" onclick="chooseRun()">

I am trying to click on the runButton with the code below.

elem = driver.find_element_by_id('runButton').click()

I am getting the following error message:

NoSuchElementException: Message: Unable to find element with css selector == [id="runButton"]

Not sure what else to try.

enter image description here


Viewing all articles
Browse latest Browse all 97790

Trending Articles



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