Forum Discussion
Ignoring rule "3. One thread per one problem" just this once!
- You could iterate through the scrollbar positions until the object becomes visible on screen and until scrollbar end position has been reached. Pseudocode code example
var scrollBar = YourContainerObject.VScroll; while (!YourTargetObject.VisibleOnScreen && scrollBar.Position < scrollBar.Max) { scrollBar.Position += 10; Delay(500); // Allow time to scroll } YourTargetObject.Click(); -
I don't understand this question. Do you want to perform a Shift Key?
- Within TestComplete you can have Project Suite, having a number of Projects. You can also set Test Items, to run all the projects it includes. Here's an example, where I run all projects within the project suite, in order
If you refer to TestComplete Command Line, there are several examples of running TestComplete via the command line shown.
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);
- rraghvani2 months ago
Champion Level 3
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 months 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"