Question
2
Replies
37
Views
Posted: September 3, 2020
Last activity: September 14, 2020
Fetch value of property from clipboard
I have values in a property of pagelist type which is populated by userinput data. Now I need to fetch the clipboard values of these inputs at runtime.
Have provided a screenshot. The value field is the input and need to fetch its corresponding clipboard data. the inputs could be
pagename.propertyname
.propertyname
pagename.pxresults().propertyname
.proplist.property
Any suggestions/solutions. Thank you.
***Edited by Moderator: Pallavi to update platform capability tags***
Any suggestions please... tried using the below code;
ClipboardPage cbPage; String pageName = tools.getParamValue("pageNm"); if(!pageName.equals("")){ cbPage = tools.findPage(pageName); } else{ cbPage = tools.getStepPage(); }
tools.putParamValue("cbPage", cbPage);
String propName = tools.getParamValue("propNm");
ClipboardProperty cbProp = cbPage.getProperty(propName);
Queries:
The step in Italics is actually adding the propName as a property to steppage, but it should not happen.
How to get the property value in case of embedded pages