Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
help with wait property function
#1
Solved: 10 Years, 9 Months 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: 10 Years, 9 Months 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: 10 Years, 9 Months 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: 10 Years, 9 Months 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 5,905 06-26-2015, 12:31 AM
Last Post: babu123
  wait QAVA 1 2,775 11-13-2012, 07:29 PM
Last Post: imzeeshan
  How to control WAIT time with STATIC variable? chong67 3 3,815 06-22-2012, 10:38 AM
Last Post: sshukla12
Exclamation Alternative for Wait Statement Veekay 2 8,264 03-20-2012, 07:13 PM
Last Post: swathi
  Verifying the value exists and if not, wait up to 5min HeZma 3 3,838 02-25-2012, 12:21 PM
Last Post: rajpes

Forum Jump:


Users browsing this thread: 1 Guest(s)