Hi,
I’m trying to create xpath using a variable that I create in my script.
As a simple example, I am using the following to create a unique value in the variable newName each time the script runs. I’d like to be able to plug that variable into an xpath later in the script.
def time = now.getTime()
String name = ‘Form’
String newName = name + time
I’d like to be able to use this variable as part of an xpath so that I can locate it in a table or other places on page, as in:
//input[@id=newName]
Can someone please advise on how to accomplish this or point me to the docs on it, which I can’t seem to find.
Thanks