Results 1 to 2 of 2

Thread: When to use what kind of locator?

  1. #1

    Default Answered: When to use what kind of locator?

    Hello there,

    I was wondering what are the benefits of using different (and more specific) locators than ST.Element such as

    - ST.Component
    - ST.button
    - ST.grid
    and so on.

    I can refernce all of the via ST.Element so in which use case would I use the other ones?

  2. When you want to reference specific aspects of a grid, you would need to use the "ST.grid" API, as that exposes "rowAt", "rowWith" methods, which aren't available under the other classes like "ST.component" and "ST.element".

    Each different component API (ST.component, ST.grid, ST.button, etc) exposes different methods, and allows you to do different things with those components.

    ST.element is designed for working with standard HTML elements, rather than components.

  3. #2
    Sencha - Sales Team daniel.gallo's Avatar
    Join Date
    Apr 2009
    Location
    Redwood City, CA
    Posts
    340
    Answers
    55

    Default

    When you want to reference specific aspects of a grid, you would need to use the "ST.grid" API, as that exposes "rowAt", "rowWith" methods, which aren't available under the other classes like "ST.component" and "ST.element".

    Each different component API (ST.component, ST.grid, ST.button, etc) exposes different methods, and allows you to do different things with those components.

    ST.element is designed for working with standard HTML elements, rather than components.
    Daniel Gallo
    Senior Solutions Architect
    Sencha Inc.

Tags for this Thread

Posting Permissions

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