Reputation: 1
Question: I am working with the Application Modeller and need to use a variable in my XPath expression. Currently, I have the following XPath:
xpath Copy code //*[@id="detailIndex1"]/summary/div/div/div[2] I want to make the detailIndex part dynamic so that I can use detailIndex2, detailIndex3, and so on. Essentially, I want to iterate over different indices. How can I achieve this in the Application Modeller?
I appreciate any assistance in resolving this issue. Thank you! (https://i.sstatic.net/dO5LH.png)
Upvotes: 0
Views: 102
Reputation: 454
if you make the match type 'dynamic' you can supply the entire text on the fly at run time via whatever stage you use.
bpdocs app modeller documentation
on the docs for app modeller you can see dynamic points listed but basically you can construct/manipulate a text on the fly and then supply it at run time so you can look for the one you want. When an element is dynamic you can supply the values here:
the params function will become interactable when you have dynamic match type turned on. this is wher eyou will supply values at run time.
Upvotes: 0