-
Notifications
You must be signed in to change notification settings - Fork 758
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please add support for jQuery in Selenium 2 #77
Comments
The removal of jquery or actually just sizzle. Is a design decision by the webdriver team. As such it's upstream from S2L. I'm not against shoe horning it back in from s2l but it will be just that, a shoe horn. Because this really needs to be implemented in the webdriver (server). If we do it from s2l I think the main issue you would have is the implicit wait functionality would probably not work at all. And we would either require the user to write the JavaScript (not good) or agree on what we want to expose ie just sizzle selectors? What about jquery filters etc... If the above is acceptable then I would be happy to implement it. (should Of course if anybody else has other ideas feel free chime in. :) |
Yes Jeremy, I agree that this is something that webdriver should have a support for. Add Location Strategy was actually contributed by my colleague Radek in Selenium1Lib which is like super duper helpful as we use jQuery a lot in our app and these tests. Thank You so much Jeremy for getting back. Hema |
Hi Jeremy, so here is the answer to supporting jQuery in webdriver: https://groups.google.com/forum/?fromgroups#!topic/selenium-users/RK0KqX_QPT4 Its not happening. |
Jeremy, any help on this please? Hema |
ok well I can look into developing something. It might take a couple of weeks as I'm pretty slammed with projects right now. I can however give you some quick and dirty code sample that may help you get started / code something up in the mean time. Here is a very simplistic execute jQuery style function.
So basically you just pass in the jquery function that you want to call, like:
or whatever. The _execute_jquery function above, if it receives and error will attempt to load jQuery and then re-execute the script.... no need to load jQuery if you application already supports it. But to load jQuery from a local file the function would look like:
Hope that is enough to get you started... like I said I can take this up...I'll look to fully reproduce the add location strategy keyword, but do to my current workload it may take a while. Cheers, |
Thank you so much !!! Thank you
|
HI Jeremy, Thank You |
Yeah I plan on doing it. However I'm not sure when I will get the chance. :( I'm pushing hard for another deadline next week at work. Hopefully after that I'll have some time. I'll keep you posted it may be a few weeks. Jeremy On Aug 23, 2012, at 11:10 AM, hemakannan wrote:
|
Thank you Jeremy for your support. When you implement this it going to be Thank you so much once again Hema
|
Hi Jeremy, Thank You ! |
My team just finished a library that wraps jquery functions for use with Selenium. We just finished our first release, but plan on wrapping ALL of jquery's functions. This library makes it easy to use jquery from your Selenium tests in C#. It makes for MUCH cleaner looking tests. Here's the source code: https://github.com/AcklenAvenue/JQSelenium |
Hi, Hema |
Hi Byron That looks really nice for java/c# but it would require binding your library to python (and other languages) and then again to robot framework (since it's written in python). A better approach would be to support the way it use to work in selenium1 by allowing jquery= selectors to be used throughout the existing selenium routines.. Which shouldn't require any binding changes at all? I am not sure if this would work for my request. Jeremy, any updates on your end for this jquery support ? |
Hey j1z0 Jeremy, Thanks |
My QA team also needs support for Sizzle (or jQuery), otherwise we will have to rewrite a substantial amount of our tests to use xpath (not-desired) or hope there is a static ID further up the tree we can reference. What is the status of this issue? Thanks, Rob |
Check out https://github.com/AcklenAvenue/JQSelenium for a layer over Byron Sommardahl On Mon, Mar 25, 2013 at 3:04 PM, rbovill notifications@github.com wrote:
|
jQuery and Sizzle support added and has been released within Selenium2Library version 1.2. |
Great news ! Thanks so much guys !
|
Is this feasible? We use jQuery a lot. Add Location Strategy was very useful to us in the front. But can the jQuery support be brought back to Selenium2?
Thank You
Hema
The text was updated successfully, but these errors were encountered: