Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
help with wait property function
#1
Solved: 11 Years, 3 Months, 4 Weeks ago
Hi on line 4 I want the start button to wait for 10 senconds. Please help me how to write the wait property function for this purpose?






Code:
Browser("Radiant Logic, Inc. |").Page("Radiant Logic, Inc. |").WebEdit("j_username").Set "cn=directory manager"
Browser("Radiant Logic, Inc. |").Page("Radiant Logic, Inc. |").WebEdit("j_password").SetSecure "50d23f85a4c11bce185d27cad48ae435a2125887d201a972"
Browser("Radiant Logic, Inc. |").Page("Radiant Logic, Inc. |").WebButton("Login").Click
Browser("Radiant Logic, Inc. |").Page("Radiant Logic, Inc. |_2").WebButton("Start").Click
Browser("Radiant Logic, Inc. |").Page("Radiant Logic, Inc. |_2").WebButton("Stop").Click
Browser("Radiant Logic, Inc. |").Page("Radiant Logic, Inc. |_2").Link("Logout").Click
Reply
#2
Solved: 11 Years, 3 Months, 4 Weeks ago
Syntax of wait property is

Code:
WaitProperty("Property Name","PropertyValue",Timeout in millisec)

Browser("Radiant Logic, Inc. |").Page("Radiant Logic, Inc. |_2").WebButton("Start").WaitProperty("enabled","true",200)
Browser("Radiant Logic, Inc. |").Page("Radiant Logic, Inc. |_2").WebButton("Start").Click


try out.....sorry if iam wrong
Reply
#3
Solved: 11 Years, 3 Months, 4 Weeks ago
Do you mean 10 seconds? Just add "wait(10)" before you click "Start" button.


Code:
Browser("Radiant Logic, Inc. |").Page("Radiant Logic, Inc. |").WebEdit("j_username").Set "cn=directory manager"
Browser("Radiant Logic, Inc. |").Page("Radiant Logic, Inc. |").WebEdit("j_password").SetSecure "50d23f85a4c11bce185d27cad48ae435a2125887d201a972"
Browser("Radiant Logic, Inc. |").Page("Radiant Logic, Inc. |").WebButton("Login").Click
wait(10)
Browser("Radiant Logic, Inc. |").Page("Radiant Logic, Inc. |_2").WebButton("Start").Click
Browser("Radiant Logic, Inc. |").Page("Radiant Logic, Inc. |_2").WebButton("Stop").Click
Browser("Radiant Logic, Inc. |").Page("Radiant Logic, Inc. |_2").Link("Logout").Click
Reply
#4
Solved: 11 Years, 3 Months, 4 Weeks ago
Thanks everybody for your kind support.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Calling a function in a Test Script from a function library anupam4j 3 6,122 06-26-2015, 12:31 AM
Last Post: babu123
  wait QAVA 1 3,023 11-13-2012, 07:29 PM
Last Post: imzeeshan
  How to control WAIT time with STATIC variable? chong67 3 3,988 06-22-2012, 10:38 AM
Last Post: sshukla12
Exclamation Alternative for Wait Statement Veekay 2 8,567 03-20-2012, 07:13 PM
Last Post: swathi
  Verifying the value exists and if not, wait up to 5min HeZma 3 4,066 02-25-2012, 12:21 PM
Last Post: rajpes

Forum Jump:


Users browsing this thread: 1 Guest(s)