09-11-2012, 06:52 PM
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
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