Hi guys,
I've written the following method to help me 'wait' for buttons as a page uploads.
1. 20000 is WaitForElement's timeout therefore unless the button shows up within 20 sec from invoking the method, it should throw an exception. For some reason it looks like a delay is created not a timeout. Are you aware of it?
2. In addition, what are forms of HtmlFindExpression I can use other then Xpath ? Could you pls add an example?
Ta.
I've written the following method to help me 'wait' for buttons as a page uploads.
public
void
WaitForButton(String awaitingButton)
{
StringBuilder buffer =
new
StringBuilder();
buffer.Append(
"XPath=//input[@value=\""
)
.Append(awaitingButton)
.Append(
"\"]"
);
Manager.ActiveBrowser.WaitForElement(
new
HtmlFindExpression(buffer.ToString()), 20000);
}
1. 20000 is WaitForElement's timeout therefore unless the button shows up within 20 sec from invoking the method, it should throw an exception. For some reason it looks like a delay is created not a timeout. Are you aware of it?
2. In addition, what are forms of HtmlFindExpression I can use other then Xpath ? Could you pls add an example?
Ta.