Skip to content

Document that jQuery is not provided by Selenium2Library #262

Closed

Description

@anianj

If that so, please update the keyword document to remove the information about jquery & sizzle

Activity

  1. emanlove commented on Jan 6, 2014

    @emanlove
    Member

    @nianjcn: As far as I know no changes were made in this area. Are you experiencing some sort of issue with the latest release?

  2. anianj commented on Jan 7, 2014

    @anianj
    Author

    Hi emanlove, when i use this keyword with jquery locator
    Click Element jquery=input[value=*'Start the storage pool configuration wizard']
    i got
    WebDriverException: Message: u'jQuery is not defined'

  3. ombre42 commented on Jan 7, 2014

    @ombre42
    Contributor

    The current implementation of jQuery support depends on the application under test providing jQuery. Selenium2Library accesses jQuery through the global object jQuery (same object as $). @nianjcn are you trying to use jQuery in a web app that does not use it? See the discussion on the pull request.

  4. ombre42 commented on Aug 29, 2014

    @ombre42
    Contributor

    The library documentation does not mention that jQuery selectors require jQuery to be provided by the AUT and referenced in the variable named jQuery. We need to document this as Jeremy's code to automatically provide jQuery was not merged.

  5. changed the title [-]Jquery is not avaliable any more in SL2?[/-] [+]Document that jQuery is not provided by Selenium2Library[/+] on Aug 29, 2014
  6. aaltat commented on May 23, 2016

    @aaltat
    Contributor

    There has not been activity for this issue for long time and we are planning to close the old issues if they are not anymore valid ones. If you feel that this is still valid issue, could you send an update. If update is not received in a month, we will assume that this is not anymore an issues and we will close this issue.

  7. jensens commented on Jun 13, 2016

    @jensens

    I just stumbled over this one.

    WebDriverException: Message: unknown error: jQuery is not defined
      (Session info: chrome=49.0.2623.75)
      (Driver info: chromedriver=2.20.353124 (035346203162d32c80f1dce587c8154a1efa0c3b),platform=Linux 3.13.0-24-generic x86_64)
    

    So yes, some lines in the docs about this would help.

  8. aaltat commented on Jun 13, 2016

    @aaltat
    Contributor

    Although this has been clear for me always, it seems that it news to someone and it would not hurt to add note, example in Execute Javascript keyword. The error message is clear and I would not change that part.

  9. aaltat commented on Jun 13, 2016

    @aaltat
    Contributor

    Created a pull request #613. If we all happy with the change, we can merge it to master and close the issue.

  10. emanlove commented on Jun 15, 2016

    @emanlove
    Member

    I believe this was not an issue of "Execute Javascript" and not having jQuery it is a problem of using jQuery locators.

    when i use this keyword with jquery locator
    Click Element jquery=input[value=*'Start the storage pool configuration wizard']
    i got
    WebDriverException: Message: u'jQuery is not defined'

    The documentation should be within the section on locators and not the 'Execute Javascript' keyword.

  11. emanlove commented on Jun 15, 2016

    @emanlove
    Member

    [Forgot to ask...] @jensens where did you see this error? what were you doing at the time or what was the keyword/statement that caused the error?

  12. aaltat commented on Jun 15, 2016

    @aaltat
    Contributor

    @emanlove Good point, I will make the change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions