I am using Telerik.Testing.Framework.2012.2.1527
I am using the below code. I am getting null for "findElem" all the time. but when I am in debug mode it is fine. WaitUntilReady(); is not working as expected for me. In my scenario I should not be using waitforelement and specify timeout.
If I set the Execution Delay to >500, my tests are running fine. But if I give it 0 they fail to find elements.
Manager.Settings.ExecutionDelay = 500;
Can you let m know what I am missing here?
I am using the below code. I am getting null for "findElem" all the time. but when I am in debug mode it is fine. WaitUntilReady(); is not working as expected for me. In my scenario I should not be using waitforelement and specify timeout.
public
bool
IsPresentbyInputId(
string
findCondition)
{
Manager.ActiveBrowser.WaitUntilReady();
Element findElem = Manager.ActiveBrowser.Find.ByExpression(
new
HtmlFindExpression(
"tagname=input"
,
"id="
+ findCondition));
Manager.ActiveBrowser.WaitUntilReady();
return
findElem !=
null
&& !findElem.Attributes.Any(s => s.Value.Contains(
"display:none"
));
}
If I set the Execution Delay to >500, my tests are running fine. But if I give it 0 they fail to find elements.
Manager.Settings.ExecutionDelay = 500;
Can you let m know what I am missing here?