WebDriver is not able to find out WebElement present on Web Application
Jan 3, 2015
9:33 AM
Labels: automation , css , framework , iFrame , java , locator , selenium , selenium 2.0 , seleniumhq.org , testing , web element , webdriver , xpath
Labels: automation , css , framework , iFrame , java , locator , selenium , selenium 2.0 , seleniumhq.org , testing , web element , webdriver , xpath
Recently came across one of the problem and I think it would be helpful to everyone if I share the details.
Problem Statement: WebDriver was not able to find out WebElement
I was using Firefox WebDriver, and in one of my test WebDriver was not able to find out Link / Image / Button for some reason.
HTML page Code look like below: I want to click on "New" link/image.
<div id="toolcontainer">
But when I use below code in my test, it didn't work... I tried following -
Problem Statement: WebDriver was not able to find out WebElement
I was using Firefox WebDriver, and in one of my test WebDriver was not able to find out Link / Image / Button for some reason.
HTML page Code look like below: I want to click on "New" link/image.
<div id="toolcontainer">
<ul id="toollist">
<li>
<a id="btnNewDash" title="New" onclick="javascript:$('#addTab').dialog('open'); return false;" href="#">
<span class="toollistimg"></span>
<span class="toollisttext"></span>
</a>
</li>
<li></li>
</ul>
</div>
But when I use below code in my test, it didn't work... I tried following -