question

acastaner avatar image
acastaner asked ericnute edited

Using variables in the 'click' action

Hi,

 

I was wondering if it's possible to use variables in the commands of the "click" action in Web sessions? I have tried everything I can think for (global variables, local variables, using get/gget, using $), and as far as I can tell the substiution is never done. The help file doesn't indicate one way or the other if this is supported so I assumed it was.

iTestGUI Testing(Web-Java Swing-etc)commandweb sessions
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
KumarS avatar image
KumarS answered KumarS posted

You can substitute both "target" and "command" fields for a web step. Target is turned off by default because normally it is an XPATH query and the user will have to make sure the data is properly escaped. But you can turn it on.

 

 


target_subst.PNG (50.3 KiB)
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.