Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
unable to click webelement by holding shift key
#1
Not Solved
Hi All,


In my application, I have some independent webelements( not contained under any object like weblist, webtable) stored on the page. I need to click on 1st webelement and hold down shift key and click last webelement.
when I tried below code..it is selecting whole page


Code:
browser("").Page("").WebElement("").Click '1st webelement
Set obj = CreateObject("Mercury.DeviceReplay")
obj.Keydown 42
x = browser("").Page("").WebElement("").Getroproperty("x")
y = browser("").Page(" ").WebElement("").getroproperty("y")
obj.mouseclick x,y
obj.Keyup 42
Reply
#2
Not Solved
Hi ,
Try the below code and let me know if it works.


Code:
Setting.WebPackage("ReplayType") = 2
set obj= browser("").Page("").WebElement("").Click
Obj.FireEvent "onmouseover"
browser("").Page("").WebElement("").click ' click on the last webelement


Regards,
kcn
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Unable to click on the WebButton with specified Index srach84 2 4,289 03-31-2015, 04:36 AM
Last Post: srach84
  Unable to click on WebButton in WebTable srach84 1 3,096 02-09-2015, 09:07 PM
Last Post: arpan
  Unable to select Multiple OracleTextFields by Holding Ctrl Button Raghava M 0 1,860 07-04-2014, 01:40 PM
Last Post: Raghava M
  Facing issue with Java Table to press Enter Key from Keyboard Nasir Ahmed 0 4,527 05-23-2014, 08:05 PM
Last Post: Nasir Ahmed
  Unable to click on moving text in a website Akhila 4 4,002 07-18-2013, 02:38 PM
Last Post: tanyamrz

Forum Jump:


Users browsing this thread: 1 Guest(s)