I was wondering if someone could help me out with how to make a dynamic Xpath. I need to click on a button that has an xpath that changes depending on the “case number” The following is the xpath:
I tried to use the following function:
new_btn= WebUI.modifyObjectProperty(findTestObject(‘Object Repository/Page_Designer Dashboard/span_Assign to me’), ‘xpath’, ‘equals’, ‘//tr[@id=“checkCases_No_4500”]/td/div/div/div/button/span’, false)
However, with this I still need to manually change the case number every time I run it.
How do I store the case number as a variable and pass it in the xpath?
Thanks so much!