i'm working old portal , have use ie
. there things doesn't find, cause it's part of <td>
menu, tried find xpath
, doesn't help.
i found form being rendered javascript
function. , i'd click on them execute it, how can locate page elements using selenium webdriver
??
for example: if had code
<div class="logout-link ng-scope" ng-click="login("github")" ng-show="!me" ng-controller="menuctrl">login</div>
how can execute ng-click part selenium webdriver?
why want execute javascript
locate element??? try using webdriverwait
wait until element visible , clickable below :-
var wait = new webdriverwait(driver, timespan.fromseconds(10)); var login = wait.until(expectedconditions.elementtobeclickable(by.xpath("//div[text() = 'login']"))); login.click();
note :- make sure before try element not inside frame
hope helps.....:)
Comments
Post a Comment