I am new to protractor and am trying to test various elements within the code (code that I did not write).
here is an example of some of the code:
<ul class="primary_menu"> <li class=""> <a href="http://localhost:8080/web/aaaa_customer/home" > Home</a> </li>
as can be seen above this element does not have an ID and the class is empty. therefore how do I access this? below is some code that I wrote to access an element that had an ID:
browser.driver.findElement(by.id('header-search-link')).click();
I have also tried to access an element by.css but it did not work for the problem above.
any help would be great
Aucun commentaire:
Enregistrer un commentaire