You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Document that jQuery is not provided by Selenium2Library #262
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'
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.
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.
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.
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.
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.
Activity
emanlove commentedon Jan 6, 2014
@nianjcn: As far as I know no changes were made in this area. Are you experiencing some sort of issue with the latest release?
anianj commentedon Jan 7, 2014
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'
ombre42 commentedon Jan 7, 2014
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.
ombre42 commentedon Aug 29, 2014
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.
[-]Jquery is not avaliable any more in SL2?[/-][+]Document that jQuery is not provided by Selenium2Library[/+]aaltat commentedon May 23, 2016
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.
jensens commentedon Jun 13, 2016
I just stumbled over this one.
So yes, some lines in the docs about this would help.
aaltat commentedon Jun 13, 2016
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.
aaltat commentedon Jun 13, 2016
Created a pull request #613. If we all happy with the change, we can merge it to master and close the issue.
emanlove commentedon Jun 15, 2016
I believe this was not an issue of "Execute Javascript" and not having jQuery it is a problem of using jQuery locators.
The documentation should be within the section on locators and not the 'Execute Javascript' keyword.
emanlove commentedon Jun 15, 2016
[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?
aaltat commentedon Jun 15, 2016
@emanlove Good point, I will make the change.