This is a migrated thread and some comments may be shown as answers.

Find Element Timeout?

5 Answers 159 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Steven Raybell
Top achievements
Rank 1
Steven Raybell asked on 28 Jul 2010, 10:56 PM
Hey all,

I couldn't immediately figure this out, as it doesn't seem obvious, but what controls element lookup timeouts?  Which setting is it?  None of the Manager.Settings properties seems directly related to this particular action.  I have an idea that ExecuteCommandTimeout might, but ExecutionDelay could, too.

I'm extremely tired, so perhaps my observation skills leave something to be desired at the moment.  ;-)


Thanks,
Steven

5 Answers, 1 is accepted

Sort by
0
Kiran
Top achievements
Rank 2
answered on 29 Jul 2010, 11:12 AM
0
Missing User
answered on 29 Jul 2010, 10:39 PM
Hello,

Thanks for the post Kiran, and you can also try this link also and ActiveBrowser.WaitForElement().

All the best,
Nelson Sin
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Kiran
Top achievements
Rank 2
answered on 30 Jul 2010, 10:58 AM
Hi Nelson,

Thanks for you reply.
Wai.Timeout =XXXXXXX is a good option. Nelson thanks for figuring out that.


Thanks
Kiran
0
Steven Raybell
Top achievements
Rank 1
answered on 30 Jul 2010, 11:18 PM
When working with the Silverlight equivalent, does this propagate down to all the child element find strategies?  For instance:

this.Application.Find.Strategy = FindStrategy.AlwaysWaitForElementsVisible;
this.Application.Find.WaitOnElementsTimeout = 5000;
this.eventCategory = this.Application.Find.ByAutomationId<ComboBox>("CategoryComboBox");
var rootElement = this.Application.Find.ByName("CreationControl"); // does this use the same strategy and timeout as above?
this.nextButton = rootElement.Find.ByText("Next");


Thanks,
Steven
0
Cody
Telerik team
answered on 03 Aug 2010, 07:48 PM
Hello Steven Raybell,

At the time your rootElement object is created, it should be getting a clone of the parent this.Application.Find. Thus it should propagate down. However once cloned they are treated separately. Thus changes to this.Application.Find won't automatically be reflected in rootElement.Find.

Greetings,
Cody
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Steven Raybell
Top achievements
Rank 1
Answers by
Kiran
Top achievements
Rank 2
Missing User
Steven Raybell
Top achievements
Rank 1
Cody
Telerik team
Share this question
or