Not able to do Javascript Regular Expression in Dynatrace

46 views Asked by At

$("div:contains('Cre­ate Pur­chase Req­ui­si­tion')").click();

I have used above Javascript code to click on an element , but the is not working as there are few extra characters (Like &) in between the innertext 'Cre­ate Pur­chase Req­ui­si­tion'. I have attached the Image for your reference. Please help me to regularize the above expression so that it will handle any extra characters that comes in between after Website Upgrade.

Thanks in advance,

Maher.

FLP Error Image

0

There are 0 answers