Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to write a genecric function for sync operation
#10
Solved: 11 Years, 4 Months ago
Hi Martina,

try this script for click button
Eg:-

using the descriptive programming

Code:
Sub click_button()
Dim browser_session
    If Browser("name:=google).page("index:=0" ,"name:=inbox").Exist Then
     Set  browser_session =  Browser("name:=google).page("index:=0" ,"name:=inbox")
    Else
     Set browser_session = Browser("name:=google).page("index:=0" ,"name:=outbox")
    End If
   browser_session.SendKey ENTER
end sub
store it in function library

call the sub procedure in your test
click_button()

i am using some browser script for the example only , implement ur script like this

kindly let me know if u have any query

Regards
Bala
Reply


Messages In This Thread
RE: How to write a genecric function for sync operation - by balakrish - 07-21-2009, 04:11 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question Cross Browser Sync Not Working geodude 0 1,963 04-07-2017, 08:43 AM
Last Post: geodude
  Calling a function in a Test Script from a function library anupam4j 3 6,116 06-26-2015, 12:31 AM
Last Post: babu123
  How to use sync function 22sumit 2 3,480 06-16-2015, 06:27 PM
Last Post: 22sumit
  The DataTable.ExportSheet operation failed. Invalid file. Niraj 2 6,283 05-05-2015, 11:40 PM
Last Post: babu123
  Excel operation - to find usedrange of rows & col pooja 1 9,711 02-19-2015, 04:06 AM
Last Post: supputuri

Forum Jump:


Users browsing this thread: 3 Guest(s)