[arquillian-issues] [JBoss JIRA] (ARQGRA-84) Support Sizzle locators with Selenium 2

Lukáš Fryč (JIRA) jira-events at lists.jboss.org
Wed Aug 8 11:41:06 EDT 2012


    [ https://issues.jboss.org/browse/ARQGRA-84?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12710520#comment-12710520 ] 

Lukáš Fryč commented on ARQGRA-84:
----------------------------------

Hi Juraj, could you please look at it once Page Extensions will be implemented?

We can discuss the implementation if that would not be familiar - e.g. JavaScript part.
                
> Support Sizzle locators with Selenium 2
> ---------------------------------------
>
>                 Key: ARQGRA-84
>                 URL: https://issues.jboss.org/browse/ARQGRA-84
>             Project: Arquillian Graphene
>          Issue Type: Feature Request
>          Components: core
>            Reporter: Lukáš Fryč
>            Assignee: Lukáš Fryč
>             Fix For: 2.0.0.Alpha2
>
>
> 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)}}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the arquillian-issues mailing list