Forum Discussion
Hi rraghvani please see screenshot below.. on step 1 i am trying to create Global variable using script routing AddVariable()
in second step i want to assign value of property 'title' to variable using run code snippet from an mapped object 'Aliases.browser.page_Search_Lightning.link_firstResultLink'
I was trying something like below
Project.Variables.VariableByName["Coveo_FirstLinkName"] =Aliases.browser.page_Search_Lightning.link_firstResultLink.contentText;
but its giving syntax error
hope this information will help.
- rraghvani7 months agoChampion Level 3
In Keyword Testing, you have the option to create a variable,
You can specify a constant value to the variable,
and use Log to output the value,
In JavaScript code, you can assign the variable like so,
and in your Keyword Test call the routine to assign the variable, and again use Log to output the value,
Related Content
- 6 years ago
Recent Discussions
- 2 days ago
- 2 days ago
- 5 days ago