Need to SHIFT CLICK a row on a SwfTable. Help Please!

  • Questions
  • Need to SHIFT CLICK a row on a SwfTable. Help Please!
Question ID: 104397
0
0

I’m dealing with these annoying Infragistics controls. I need to SHIFT CLICK on a row on a SwfTable object. I’ve tried SendKeys methods and various other tricks that I’ve found on the internet to no avail. Basically I need to click a row, then shift click another row to highlight both those rows and all the rows in between. To click the row, you simply do this:

SwfWindow("XSP Toolbar").SwfWindow("Queue Explorer-Critical").SwfTable("queueExplorerUltraGrid").SelectRow 4

Marked as spam
Posted by (Questions: 16, Answers: 806)
Asked on October 11, 2011 12:29 pm
39 views
Answers (1)
8
Private answer

Have you tried to use the DeviceReplay instead of the sendKeys?


	
Const mykey_SHIFT = 42

Set deviceReplay = CreateObject( ''Mercury.DeviceReplay'' )

deviceReplay.KeyDown myKey_SHIFT

SwfWindow(''XSP Toolbar'').SwfWindow(''Queue Explorer-Critical'').SwfTable(''queueExplorerUltraGrid'').SelectRow 4

deviceReplay.KeyUp myKey_SHIFT

Set deviceReplay = Nothing

There is a good write up on Device Replay at this [site][1] or the following HP KB articles.

[What are the DeviceReplay.PressKey key Codes KM1194127][2]

[How to use the QuickTest Professional (QTP) Device Replay feature KM184330][3]

[1]: http://www.advancedqtp.com/2008/04/the-undocumented-devicereplay/
[2]: http://support.openview.hp.com/selfsolve/document/KM1194127?searchIdentifier=580cf68e%3a133edc5362b%3a28d2&resultType=document&documentURL=KM1194127&resultsURL=%2fselfsolve%2fdocuments&allowReturn=true
[3]: http://support.openview.hp.com/selfsolve/document/KM184330

Marked as spam
Posted by (Questions: 2, Answers: 98)
Answered on November 29, 2011 3:35 pm
EyeOnTesting