Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using IF condition to check current page
#1
Solved: 10 Years, 9 Months ago
Hi all

Im testing a web based application, where the user logs in and follows a flow. If the user has already done that flow, a different page is shown with a text "You have already done this flow, click ok to view details"

In my script i want to insert some sort of call to function, where a click on OK on the new page is performed and the script should not run any further from here. How do approach this ?
Reply
#2
Solved: 10 Years, 9 Months ago
you should put in a variable that phrase using GetROProperty, then with IF condition on this variable you can skip the usual flow
Reply
#3
Solved: 10 Years, 9 Months ago
Could you give an example of this, given the following information:

if First login: Page shown is welcome.htm, pagetitle: welcome to the flow
if Second login: Page shown is already_done.htm, pagetitle: already done the flow
Reply
#4
Solved: 10 Years, 9 Months ago
Code:
dim a
a=Browser("xyz").Page("xyz").GetROProperty("title")

If a="Http://already_done.htm" Then
   ....
Else
   ....
End If
Reply
#5
Solved: 10 Years, 9 Months ago
Thx m8, I'll see if i can get it working
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  check broken link in a page deveshbhatt29 0 2,623 01-18-2014, 12:35 PM
Last Post: deveshbhatt29
  Write a program to print the current folder name in the local system. kannan_panneerselvam 8 7,682 07-09-2011, 11:10 AM
Last Post: souvikghosh_diatm
  how to capture the current page URL sidartha 9 7,101 01-26-2011, 11:04 PM
Last Post: Brian.Osborne
  Changing current working directory vijay44 1 3,328 01-21-2010, 03:22 PM
Last Post: Saket
  How to check all values on a page. upadhyay40 0 1,796 12-09-2009, 03:49 PM
Last Post: upadhyay40

Forum Jump:


Users browsing this thread: 1 Guest(s)