Uploaded image for project: 'Arquillian Graphene'
  1. Arquillian Graphene
  2. ARQGRA-84

Support Sizzle locators with Selenium 2

    Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 2.0.0.Alpha3
    • Component/s: core
    • Labels:

      Description

      Right now, WebDriver supports XPath and CSS locators, but they are not still as powerful as Sizzle locators.

      Implementation of this feature is very easy, as you can see here:
      http://selenium.polteq.com/en/injecting-the-sizzle-css-selector-library/

      The only what needs to be done is injecting Sizzle to the page (using Page Extensions feature) and then execute script - WebDriver will automatically return List<WebElement> if script return value will be evaluated as WebDriver element.


      The problem comes with supporting By.* and @FindBy.

      I propose to

      • wrap all By. in Graphene.
      • introduce Graphene.jq
      • introduce @FindByJQ(String)

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jhuska Juraj Húska
                  Reporter:
                  lfryc Lukáš Fryč
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: