sean_ng
6 years agoOccasional Contributor
search object by using two criteria
i would like to search for an object by using two search criteria.
example i want to search for a button and then to click on it .. but there is a lot of button with the same name on that webpage .. so i want to use contentText and idStr, which mean the button must match both the contentText and idStr for the clicking to happen, how can i do that ?
now i only manage to use one by using the native function how to use both contentText and idStr
*note using contentText and idStr are example only, i am flexible to use other attribute.
thanks in advance