Forum Discussion
Try putting the variable value in the log. Then you can see if it's getting the value you want or not.
Added some more screenshots.
I think the value is not getting stored in the global variable.
- saranoor7 years agoFrequent Contributor
value is getting stored and that step is passing,.
now I need to understand how to tweak the script
function foo(){
var itemCount = Aliases.browser.pageUntitledDocument.table;
Sys.Browser("iexplore").Page("http://fred01/index.cfm?fuseaction=MEDFR.OneProject&key=28942stid=1&apid=2").Table(1);
var test1 = itemCount.FindChild("text",Project.Variables.MedferReportNumber,5);
test1.DblClick();
}- AlexKaras7 years agoCommunity Hero
Hi,
> now I need to understand how to tweak the script
What's wrong with it?
What log shows up if you insert
Log.Message(Project.Variables.MedferReportNumber);
line of code right before the
var test1 = itemCount.FindChild("text",Project.Variables.MedferReportNumber,5);
one?
Also, if the 'text' property has a text value, what if you explicitly convert the value of MedferReportNumber variable to be of text type?
- saranoor7 years agoFrequent Contributor
Script is not working