Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"Click" not working
#4
Solved: 10 Years, 9 Months, 3 Weeks ago
Instead of adding wait statements, you can use the .Exist method and wait for an object to appear before you move forward:

Code:
With Browser(browser).Page(page).Frame(frame)
    .WebEdit("name:=input1").Set ""
    .WebEdit("name:=input2").Set "12345"
    .WebButton("name:=Find").Click
    Browser(browser).Sync
    If .WebButton("name:=Export").Exist( 5 ) Then
        .WebButton("name:=Export").Click
    Else    
        Reporter.ReportEvent micWarning, "Export Button", "Object was not found"
    End If
End With
Reply


Messages In This Thread
"Click" not working - by XeNoMoRpH - 06-29-2009, 06:20 PM
RE: "Click" not working - by ursvinod - 06-29-2009, 06:58 PM
RE: "Click" not working - by XeNoMoRpH - 06-29-2009, 09:44 PM
RE: "Click" not working - by Anshoo Arora - 06-30-2009, 02:38 AM
RE: "Click" not working - by XeNoMoRpH - 07-01-2009, 07:37 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Exclamation WebElement("WebElement").Click is not working sia sharma 7 23,311 09-28-2016, 08:58 PM
Last Post: supputuri
  Right Click On a Image and Click on a Link in WebElement RameshKrishnan 4 5,158 07-10-2013, 04:13 PM
Last Post: RameshKrishnan
  How do I left click on the right click menu in WinTreeView? RandomGrin 0 3,675 12-22-2012, 04:22 AM
Last Post: RandomGrin
  How do I left click on the Right click menu? RandomGrin 2 3,995 12-18-2012, 09:47 PM
Last Post: RandomGrin
  link click not working sia sharma 3 3,702 08-03-2012, 06:20 PM
Last Post: SteveS

Forum Jump:


Users browsing this thread: 1 Guest(s)