Highlighted
Absent Member.
Absent Member.
580 views

select multiple records from webtable

Can anyone tell me how to select multiple records from webtable

0 Likes
5 Replies
Highlighted
Knowledge Partner
Knowledge Partner

How do you do it manually by holding down the CTRL key and clicking the required elements?

Mark Smith.

0 Likes
Highlighted
Absent Member.
Absent Member.

Yes, manually i am pressing the ctrl key down and selecting the records

0 Likes
Highlighted
Knowledge Partner
Knowledge Partner

Does UFT create any statements if you record depressing the CTRL key and selecting multiple rows?

Mark Smith.

0 Likes
Highlighted
Absent Member.
Absent Member.

Hi,

Please try DeviceReplay options to do multiple select,

Sample snippet given below,

'==============================================

Set objDeviceReplay = CreateObject( "Mercury.DeviceReplay" )
Const cntrl = 29
hwnd =Browser("Participation Management").Page("Participation Management").GetROProperty("hwnd")
 
Set DeviceReplay = CreateObject("Mercury.DeviceReplay")
wait 5

obj.click ' Include the record to be clicked using ChildItem.Click
'e.g.: .WebTable("Formats_And_Rights").ChildItem(1,1,"WebElement",0).Click
window("hwnd:=" & hwnd).type micCtrlDwn
  
Set MyWebelement = .WebTable("Formats_And_Rights").ChildItem(4,1,"WebElement",0)
  
GetX = MyWebelement.GetROProperty("abs_x")
GetY = MyWebelement.GetROProperty("abs_y")
 
DeviceReplay.MouseClick GetX,GetY, LEFT_MOUSE_BUTTON  
obj.click ' Include the record to be clicked using ChildItem.Click

'==============================================

Thanks.

0 Likes
Highlighted
Absent Member.
Absent Member.

 

no it doesnt create any statements while recording depressing ctrl key and selecting multiple rows

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.