'Unable to get selenium driver not finding element when defined as a <span> with class or
I am receiving the following error message:
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":"[id="tl00_ctl00_ContentPlaceHolderBase_ContentPlaceHolderRight_ctl00_controlDetailTop_lbName"]"
when using:
browser.find_element(by=By.ID,value='tl00_ctl00_ContentPlaceHolderBase_ContentPlaceHolderRight_ctl00_controlDetailTop_lbName')
The Chromimium developer tools -> elements show the element as defined:
<div id="nameAndIcons">
<span id="ctl00_ctl00_ContentPlaceHolderBase_ContentPlaceHolderRight_ctl00_controlDetailTop_lbName" class="candidateName">Full Name/span>
I have also tried using by=By.CLASS_NAME with same error.
Any suggestions on how to get this element to be found so I can use the ".text" to pull 'Full Name" value out?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
