Find Element Timeout?

6 posts, 0 answers
  1. Steven Raybell
    Steven Raybell avatar
    9 posts
    Member since:
    Apr 2010

    Posted 28 Jul 2010 Link to this post

    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
  2. Missing user
    Missing user avatar

    Posted 29 Jul 2010 Link to this post

    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
  3. Kiran
    Kiran avatar
    56 posts
    Member since:
    Dec 2008

    Posted 30 Jul 2010 Link to this post

    Hi Nelson,

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


    Thanks
    Kiran
  4. Steven Raybell
    Steven Raybell avatar
    9 posts
    Member since:
    Apr 2010

    Posted 30 Jul 2010 Link to this post

    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
  5. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 03 Aug 2010 Link to this post

    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
Back to Top