Slow to find elements during test

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
knahvi
Posts: 5
Joined: Wed May 29, 2019 8:14 pm

Slow to find elements during test

Post by knahvi » Wed May 10, 2023 7:51 pm

Windows Server 2019 Datacenter Version 1809
Ranorex 10.5.1

I'm adding automation for one of my company's applications. I've gotten the tests to work, but I've noticed that they take substantially longer to complete than other application's automation tests. It seems like the bulk of this is due to the time between clicking/finding an element and finding the next element to perform an action.

I've tried going to Ranorex Setting > Advanced > Changing the Xpath settings to prefer speed and also tried robustness (originally it was in the middle). Then tried using Spy to get the new paths but they don't seem to change at all. I don't believe I can be any more exact in defining the element's path.

I have also looked into the Ranorex settings > Recorder Defaults. All the timings are a second or less.

Below are some snippets of the biggest offenders.

//Report.Log(ReportLevel.Info, "Information", "Container Name = " + ContainerName);

mainPage.Tab_TagMonitor_Click();

mainPage.Checkbox_RowSelect(13).Check();
mainPage.Textbox_Value(13).TextValue = "";
mainPage.Textbox_Value(13).PressKeys("1");
mainPage.Button_Submit_Click(13);

//public CheckBox Checkbox_RowSelect(int Row)
{
int i = 0;
aorRepo.Row = Row.ToString();
//aorRepo.ExactaAORBastianSoftwareSolutions.TagMonitorTab.Table.Checkbox_RowSelectInfo.WaitForExists(2000);
while (i < 10 && (!aorRepo.ExactaAORBastianSoftwareSolutions.TagMonitorTab.Table.Text_TagMonitorNameInfo.Exists(4000)))
{
Button_ScrollBar.Click();

i += 1;
Report.Log(ReportLevel.Info, "Information", "Tag Monitor Tab. Incrementing i: " + i);
}

return aorRepo.ExactaAORBastianSoftwareSolutions.TagMonitorTab.Table.Checkbox_RowSelect;
}

private Button Button_Submit
{
get
{
return aorRepo.ExactaAORBastianSoftwareSolutions.TagMonitorTab.Table.Button_Submit;
}
}

public void Button_Submit_Click(int Row)
{
aorRepo.Row = Row.ToString();
Button_Submit.Click();
}
You do not have the required permissions to view the files attached to this post.