I'm trying to fetch the text of Webelement that displays in the following format. Here div[3] or div[4] is not in order. I would like to fetch these elements on a page and if it matches with given text, I need to click on it.
//*[@id="default_products_page_container"]/div[3]/div[2]/h2/a
//*[@id="default_products_page_container"]/div[5]/div[2]/h2/a
Appreciate any idea on this?
Thanks, Sudhakar
Aucun commentaire:
Enregistrer un commentaire