Can I update an XPath address dynamically in code?
Posted: Tue Jun 07, 2016 2:50 pm
I have a variable in my Repository defined as:
Can I set this 'path' dynamically in my code, so it does not keep showing up on my reports as an Unbound Variable?
I need to use this path to access the control described.
Rather than us $currentFormName here, which is described as an Unbound Variable, I would rather use a C# Global Variable, like this:/mobileapp[@title='com.365agile.enterprise.365Agile-TEST']/form/container[@caption='' and @containertype='LayoutContainer']/container/container/container/container/container/container/table/
container[1]/container/cell/text[@accessibilitylabel=$currentFormName]
Code: Select all
public static string GlobalCurrentForm
{
get{return _globalCurrentForm ;}
set{_globalCurrentForm =value ;}
}
I need to use this path to access the control described.