Hi Guys,
Using Nunit, FF (3.0.19), VSE 08.
I'm using the following code to click a button (AJAX buttons are handled in a slightly different way..):
The above works well at most scenarios except a few in which the above is followed by an assertation of some kind as
check if txt exists ext.
The test passes however when 'executionDelay' value is increased from 100-150 to 800 or more, indicating the issue is not the code (In a sense that I'm not looking for the wrong element etc).
Am I using/understanding WaitUntilReady method wrongly ? My assumption is that if WaitUntilReady
is the last action the ClickButtonByGUICaption ()initiates, there should be no issues initiating any kind of verification/action past that point on the page that loads as the page is supposed to be ready. Does ready = fully loaded ?
Pls note that using WaitForElement/Frame maybe quite tedious in my case as I have a large number of situations so I need to use a more generic solution as the above.
Ta,
SD.
Using Nunit, FF (3.0.19), VSE 08.
I'm using the following code to click a button (AJAX buttons are handled in a slightly different way..):
public
void
ClickButtonByGUICaption(String buttonGUIName)
{
StringBuilder buffer =
new
StringBuilder();
buffer.Append(
"//input[@value=\""
)
.Append(buttonGUIName)
.Append(
"\"]"
);
Manager.ActiveBrowser.Find.ByXPath<HtmlInputSubmit>(buffer.ToString()).Click();
Manager.ActiveBrowser.WaitUntilReady();
}
check if txt exists ext.
The test passes however when 'executionDelay' value is increased from 100-150 to 800 or more, indicating the issue is not the code (In a sense that I'm not looking for the wrong element etc).
Am I using/understanding WaitUntilReady method wrongly ? My assumption is that if WaitUntilReady
is the last action the ClickButtonByGUICaption ()initiates, there should be no issues initiating any kind of verification/action past that point on the page that loads as the page is supposed to be ready. Does ready = fully loaded ?
Pls note that using WaitForElement/Frame maybe quite tedious in my case as I have a large number of situations so I need to use a more generic solution as the above.
Ta,
SD.