Quantcast
Channel: LoadRunner Practitioners Forum topics
Viewing all articles
Browse latest Browse all 3978

Truclient 12.53 Chrome regex in if statement

$
0
0

I am rescripting a script that worked in LR12.0 in 12.53 in the Chrome protocol.

In the LR12.0 script I had:
1) Get Visible Text from [label] into variable1
2) if (variable1=/some of the text in the label/)
           do commands

   else
           do other commands

The same code doesn't work in LR 12.53/Truclient/Chrome.

I made sure that the variable1 is saving the text that I want it to.
The single equals sign bombs out, and jumps to the Catch Error in the script. so I changed to double equal (which sounds better since it's an equality check).
What happens in this script is that it will just not recognise the if varialble and do the "do other commands"

Any ideas?

(I am trying to re-run the scipt I recorded against Chrome in IE mode, but appears I'm getting a lot or unrecognised items. Had hoped that it would be a lot more seamless playing on different browsers.)


Viewing all articles
Browse latest Browse all 3978

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>