Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Able to Click on a webbutton
#1
Solved: 11 Years, 4 Months, 3 Weeks ago
I am having one Webedit box beside that i am having a select button...

I need to click on select button and upload a file from a path "c:/....."
I am able to identify the select button but not able to click on it
I tried by recording but it is not able to record.

And i tried in this :

Code:
Set odesc=Description.Create
odesc("micclass").value="WebButton"
odesc("class").value="ruButton ruBrowse"
Set val=Browser("Dashboard").Page("Dashboard").WebTable("Select Navigation").ChildObjects(odesc)
msgbox val.count
val(0).click
I got the count as one .... but not able to click

And i tried by passing the path directly to the webedit but it is not validating...

Please help me...
Reply
#2
Solved: 11 Years, 4 Months, 3 Weeks ago
Hi,

You can use the combination of the sendkey to click on that button
eg:
Code:
Set key=createobject("WScript.Shell")
key.Sendkeys "{ENTER}"..

Thanks
ANurag
Reply
#3
Solved: 11 Years, 4 Months, 3 Weeks ago
Hi,

Try to use device replay.. it might help u.

Regards,
Sankalp
Reply
#4
Solved: 11 Years, 4 Months, 3 Weeks ago
Hi sankalp

Code:
Set DeviceReplay = CreateObject("Mercury.DeviceReplay")

DeviceReplay.mousemove 527,613
wait(5)
DeviceReplay.mouseclick 527,613,1
Is this correct?


I worked with send keys but not able to click on the webbutton....and i worked with devicereplay too.. is there any other way...

Note: i am not able to record the webbutton..
Reply
#5
Solved: 11 Years, 4 Months, 3 Weeks ago
Hi,

Try to use below code:
Code:
Setting.WebPackage("ReplayType") = 2 '2-Runs mouse operations using the mouse
Browser("xyz").Page("abc").WebButton("WebButton").Click
Setting.WebPackage("ReplayType") = 1  '1-Runs mouse operations using browser events
Regards,
Sankalp
Reply
#6
Solved: 11 Years, 4 Months, 3 Weeks ago
Hi sankalp,

it is working fine thanks a lot..
Reply
#7
Solved: 11 Years, 4 Months, 3 Weeks ago
Hi,

Can you please check manually whether you are able to click on it or not..bcoz i dont think that these to methods will not work.

Thanks
ANurag
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Not able to click on webbutton Zalavadia86 3 2,319 10-24-2016, 11:32 PM
Last Post: frebuffi
  Right Click On a Image and Click on a Link in WebElement RameshKrishnan 4 5,478 07-10-2013, 04:13 PM
Last Post: RameshKrishnan
  Cannot find the "[ WebButton ]" object's parent "[ Page ]" (class Page) sumitparolkar@gmail.com 4 5,173 05-03-2013, 11:53 PM
Last Post: agarwl.anurag
  How do I left click on the right click menu in WinTreeView? RandomGrin 0 3,954 12-22-2012, 04:22 AM
Last Post: RandomGrin
  How do I left click on the Right click menu? RandomGrin 2 4,272 12-18-2012, 09:47 PM
Last Post: RandomGrin

Forum Jump:


Users browsing this thread: 1 Guest(s)