wrong code execution - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming) +--- Thread: wrong code execution (/Thread-wrong-code-execution) |
wrong code execution - pkdhake - 07-20-2013 Code: If Browser("name:= Welcome to Bugzilla").Page("title:=Welcome to Bugzilla").Link("test:=Log In","visible := true").Exist(10) then Whats wrong with this code? When always I try this code it goes to false condition if though condition is true. RE: wrong code execution - supputuri - 07-21-2013 Try the below code: Code: If Browser("name:=Welcome to Bugzilla").Page("title:=Welcome to Bugzilla").Link("test:=Log In","visible:=true").Exist(10) then There should not be any extra spaces between property and Value. RE: wrong code execution - Staff - 07-22-2013 Please ensure to include your code between [code] tags while asking or replying to questions. I have done this for you for this time. RE: wrong code execution - vinod123 - 07-23-2013 just check if the page is displayed or not first. If the page is displaying change the properties of the page and run it RE: wrong code execution - sreekanth chilam - 07-27-2013 Hi, As SUpputuri already suggested above, there are leading & trailing spaces in the property descriptions. "name:= Welcome to Bugzilla" (it should be like "name:=Welcome to Bugzilla") "visible := true". (it should be like "visible:=true") Try as suggested above and see.... |