lundi 13 janvier 2020

How do i use wildcards in selectors in testcafe

Hello I want to know how do I use wildcards with selectors in testcafe, for example, I have several Id in a page which is as below ' ctl00_ContentPlaceHolder1_gv_ctl02_imgBtnFilter' 'ctl00_ContentPlaceHolder1_gv_ctl04_imgBtnFilter' ' ctl00_ContentPlaceHolder1_gv_ctl09_imgBtnFilter'

The starting remains the same [ctl00_ContentPlaceHolder1_gv_] and the ending remains the same[_imgBtnFilter] but the number ct*** keeps changing. So I want to put a wildcard in that place and I want to know if there is an option of doing that in testcafe?

Aucun commentaire:

Enregistrer un commentaire