TestingHobo
10 years agoContributor
Wait for Xpath
Hi could someone confirm if this is possible. Coming from a Selenium background all my scripts use xpaths, however i have to hardcode waits in to most of my steps to account for PC performance, network, server etc so they dont fall over.
Example:
aqUtils.Delay(10000);
Page.FindChildByXPath("//*[@id='dvActionbtnArea']//a[node()[contains(., 'Add')]]").Click();
aqUtils.Delay(10000);
Is there anyway to Testcomplete to wait for the xpath but as soon as its visible click as it could take 1 second to load it could take 10 seconds
Example:
aqUtils.Delay(10000);
Page.FindChildByXPath("//*[@id='dvActionbtnArea']//a[node()[contains(., 'Add')]]").Click();
aqUtils.Delay(10000);
Is there anyway to Testcomplete to wait for the xpath but as soon as its visible click as it could take 1 second to load it could take 10 seconds