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

Pleae find the below LOC and let me know it's OK with you.

Code:
'LOC to click on the button
msgbox  Click (Browser("Google").Page("Google"),"WebButton","Google Search")

'LOC to click on the Link
msgbox  Click (Browser("Google").Page("Google"),"Link","Preferences")

'LOC to click on the Image
msgbox  Click (Browser("Google").Page("Google"),"WebButton","ImageName")

Function Click (objPath,strObjType,strobj)
   Click =True
    Select  Case strObjType
        Case "WebButton"
            objPath.WebButton(strobj).click
        Case "Link"
            objPath.Link(strobj).click
        Case "ImageButton"
            objPath.Image(strobj).click
        Case Else
                Click = False
    End Select
End Function
Let me know if you need any more info.
Thanks,
SUpputuri
Reply


Messages In This Thread
RE: How to write a genecric function for sync operation - by supputuri - 07-20-2009, 04:37 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,285 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)