Hello, I'm attempting to select multiple rows in a Web App Table by clicking on the first row, Shifting and clicking on the last row. So basically highlighting all rows. Some of things we've tried:

 

1.          Dim oDeviceReplay
Const VK_SHIFT = 45
Const VK_CONTROL = 29
Set oDeviceReplay = CreateObject("Mercury.DeviceReplay")
rowCount = Browser("MOM | Connect Console").Page("Console - Main").WebTable("FST-Table").RowCount()

Browser("MOM | Connect Console").Page("Console - Main").WebTable("FST-Table").Cell(2,1).Click

oDeviceReplay.KeyDown VK_CONTROL
Browser("MOM | Connect Console").Page("Console - Main").WebTable("FST-Table").Cell(rowCount,1).Click

oDeviceReplay.KeyUp VK_CONTROL

Set oDeviceReplay = Nothing

2.      Browser("Model On Demand").Page("Model On Demand").Frame("Frame").WebTable("Table_Projects") .ChildItem(ProjectRow1, 0, "WebElement", 0).click
'Window("Google Chrome").Type  micShiftDwn 

Browser("MOM | Connect Console").Page("Console - Main").WebTable("FST-Table").Cell(rowCount,1).Click

'Window("Google Chrome").Type  micShiftUp

3. Tried low level recording it did not capture the shift.

Tags: