Results 1 to 2 of 2

Thread: ST.future.Component rendered method works with webdriver based tests

  1. #1

    Default ST.future.Component rendered method works with webdriver based tests

    According to documentation, [COLOR=#025B80 !important]rendered[/COLOR] method is not supported for WebDriver-based tests

    I tried this method in my tests and it behaves as designed: Waits for this component to be rendered

    Is the documentation not correct? Is there a bug in ST in this case?

    I am using it exactly as it is described but in a WebDriver based test.

  2. #2
    Sencha User
    Join Date
    Nov 2014
    Posts
    3,120
    Answers
    446

    Default

    Quote Originally Posted by sergiu.popescu View Post
    According to documentation, [COLOR=#025B80 !important]rendered[/COLOR] method is not supported for WebDriver-based tests

    I tried this method in my tests and it behaves as designed: Waits for this component to be rendered

    Is the documentation not correct? Is there a bug in ST in this case?

    I am using it exactly as it is described but in a WebDriver based test.
    Hi--

    The method will generally work, and always return true, for a component retrieved via a selector. The real purpose of rendered() is to be able to pass an actual unrendered component instance to ST.component() (or another futures method) and have it "wait" until something within the application logic brings the component to a rendered state.

    With WebDriver scenarios, you'll never have access to an unrendered component instance within the context of your spec, so the actual intention of rendered() will not be realized.

    Thanks!
    Joel

Similar Threads

  1. UI auto tests: No error for setting duplicate component ids
    By altmayer in forum Ext GWT: Discussion
    Replies: 0
    Last Post: 24 May 2011, 10:41 PM
  2. Method must be called after the component is rendered
    By kpb in forum Ext GWT: Discussion
    Replies: 4
    Last Post: 14 May 2010, 2:10 PM
  3. Replies: 6
    Last Post: 29 Jul 2009, 2:58 PM
  4. Help With Example -Method must be called before the component is rendered
    By Manuel Elaraj in forum Ext GWT: Help & Discussion (1.x)
    Replies: 4
    Last Post: 17 Jun 2009, 7:04 AM
  5. Replies: 2
    Last Post: 10 Sep 2008, 11:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •