How can I access Web page variables with QTP/UFT?
Question ID: 104929
1
0

I have been looking thru QTP documentation to find out how to extract variables from PageDOM.
The way to access the object in jQuery is as follows : $(s) If you wanted to access a variable of s object, you would do, for example: $(s).pageName or $(s).channel

On this page I tried below but looks like I am missing some info somewhere as it returns nothing.
schannelVal = Browser("myBrowser").Page("myPage").RunScript("$(s).channel")

Marked as spam
Posted by (Questions: 22, Answers: 6)
Asked on March 28, 2013 3:29 pm
60 views
Answers (1)
1
Private answer

I have seen this before and it was security settings that company imposed on all machines. For a quick fix try this:
?
Have you tried to reset/repair IE?
1. Start Internet Explorer.
2. On the Tools menu, click Internet Options.
3. On the Advanced tab, click Reset under Reset Internet Explorer settings.
4. In the Reset Internet Explorer Settings dialog box, click Reset to confirm.
5. Shut down all Internet Explorers.
6. Run the test again.

Here is Microsoft's document how to run a repair.
[http://support.microsoft.com/kb/318378][1]

[1]: http://support.microsoft.com/kb/318378

Marked as spam
Posted by (Questions: 2, Answers: 98)
Answered on March 28, 2013 3:30 pm
0
That fix my problem. Thank you.
( at March 28, 2013 5:45 pm)
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top