質問

In Selenium IDE, we have a page that writes a different number every time. There's a checkbox on that page I need to check, whose id is 'ldev_####', where '####' is the number that changes. Is there a way I can use the storeText command to store the number that changes each time and then somehow make that part of the id on the click command? I tried this, and it didn't work:

storeText | //table[@id='xxxxx']/tbody/tr/td[5] | ldev_var
click     | id=ldev_$ldev_var

The id above usually comes out like this: id=ldev_1234

it's the '1234' that changes. Am I overthinking this, or is there an easier way to do this?

thanks so much for any help, Ed

役に立ちましたか?

解決

You can use xpath expression to solve this problem:

//input[starts-with(@id,'ldev_')]
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top