How to change XPath contraint when click button

0
  Hi friends, my target is change list content when click button, for example click HR button, list HR employee name only. or is there other solutions? thanks.
asked
2 answers
1

Hi Sean,

 

you could create one helper object, in which you save a string based on the button you pressed. Use a microflow or nanoflow datasource, in which you can retrieve the list and use the helper in the xpath.

 

answered
0

Hi Sean,

You can just use two separate list views with separate XPaths. Then toggle their visibility using a parent helper object where you toggle a boolean on the press of a button.

answered