Dealing with an outdated portal that requires the use of IE
. There are certain elements, such as those within a <td>
menu, that cannot be located. I attempted to locate them using XPath
, but it was unsuccessful.
Upon further inspection, I discovered that the form is generated by a JavaScript
function. I would like to trigger a click event in order to execute it, but how can I find the page elements using selenium WebDriver
?
For instance, if I had the following code:
<div class="logout-link ng-scope"
ng-click="login("github")"
ng-show="!me" ng-controller="MenuCtrl">login</div>
How can I trigger the ng-click part using Selenium WebDriver?