mercredi 11 avril 2018

How to use Protractor Locator for web testing JQWidget

Hi I'm new to using ProTractor. I followed the tutorial on their website and I think I understand it pretty well.

The website I need to test is a bit confusing. It has a JQwidget table on some of the pages. The column headers have two parts: one is a text part that when you click on it, it just rotates thru all the orders; the second one is an icon that when you click it there's a dropdown menu to select asc/desc order.

I used inspect element on the column header in browser, below is what gets highlighted: enter image description here

It seems like the icon part has an ID so I can just use by.ID(), but the text part doesn't. If I just want to click the text part how do I do that?

Also wondering what is the best way of finding attributes/locators to use for testing wed stuff?

Thank you

Aucun commentaire:

Enregistrer un commentaire