Forum Discussion
Hi rraghvani,
Thank you for your reply.
2) I think it's a bug introduced in TestComplete 15.77 version, it wasn't behaving like this before.
I am trying to select 2 objects in the script below while simulating Shift key. After executing the test case below whatever I execute afterwards it simulates Shift Key.
// Select the second dataset to compare
var axisel = Sys["Process"]("AXISEL");
var masterListView = axisel["WinFormsObject"]("MainForm")["WinFormsObject"]("splitContainer1")["WinFormsObject"]("SplitterPanel", "", 2)["WinFormsObject"]("splitContainer2")["WinFormsObject"]("SplitterPanel", "", 1)["WinFormsObject"]("WorkAreaDetailView")["WinFormsObject"]("splitContainer1")["WinFormsObject"]("SplitterPanel", "")["WinFormsObject"]("tabControl")["WinFormsObject"]("tabPageDatasets")["WinFormsObject"]("DatasetView")["WinFormsObject"]("splitContainer1")["WinFormsObject"]("SplitterPanel", "", 1)["WinFormsObject"]("ItemList");
var listItem = masterListView["ListItem"](DatasetName2);
listItem["Click"](75, 10, skShift);
listItem["ClickR"](75, 10, skShift);
Delay(500);
masterListView["StripPopupMenu"]["Click"]("Advanced|Compare|Compare Two Highlighted Datasets... ");
Delay(1000);
Thanks for clarifying; I understand now. It is a bug that was noticed in the post .Click action doesn't release Ctrl | SmartBear Community when using the skCtrl key. It could be related to the bug fix they implemented, which also affects skShift.
- skCtrl key not functioning as expected. Resolved a bug that prevented simulated skCtrl key presses from selecting multiple items. The fix restores correct multi-select behavior in 32-bit environments.
- rraghvani2 days ago
Champion Level 3
To add, Scroll Bars may not expose properties such as X, Y coordinates. However, there may be methods you can invoke to mimic a scroll. Use the Object Browser to see what Methods are exposed for your Scroll Bar. Alternatively, you could perform a page up/down keystroke.
TestComplete command line example,
"C:\Program Files (x86)\SmartBear\TestComplete 15\x64\Bin\TestComplete.exe" "N:\Automation\Elink\ELink Automation\ELinkServer1\ELink.pjs" /r /e /p:"ELink"
If you are testing a 64-bit application, then use x64 path for TestComplete. Use the appropriate project name for parameter /p:"ELink"