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
Various improvements. #30
Conversation
Hi. |
Sorry, didn't realise pull requests change as more commits happen. |
@@ -1,7 +1,7 @@ | |||
/* | |||
This file is part of the GhostDriver project from Neustar inc. | |||
|
|||
Copyright (c) 2012, Ivan De Marino <ivan.de.marino@gmail.com> - Neustar inc. | |||
Copyright (c) 2012, Ivan De Marino <ivan.de.marino@gmail.com> - Neustar inc. and others. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you want to enter "and other authors" right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it's appropriate.
Where are the scripts in |
The scripts are imported directly from the Selenium repo. I think you need to have that locally if you want to understand what the atoms do: without is pretty much impossible. The method "toJson" in the WebElementRH returns the format that those script know how to convert from a WebElementID to an actual DOM element. Unfortunately my understanding is based on conversations on the #selenium IRC channel, nothing more: doc is lacky there. |
Ah nice, thanks for the pointer. |
Ah, and it's all done via the bash script "magic" that it's in tools, if you want to understand exactly "HOW" I do it. |
I've implemented /name and /attribute/ as well - worked out how to get WebDriver HTMLElements inside execute_script, which is nice. Let me know when is convenient and I can merge these to my master branch and submit a pull request. By the way, I'm using Geb to write end-to-end tests for this stuff. It's a bit of a Frankenstein project, but if you're interested then it's at https://github.com/alxndrsn/webdriver-geb-tests |
I'll merge and rename the "responseBasedOnResult", as it's should probably be something like ".successBasedOnResult". Also, I think I'll have to add the Cookie manipulation Atoms and use those: they will make our life WAY easier. Everything else looks good. |
Ah, btw, looking forward to your next pull request. But make sure you catch up with code first: by than I might have finished with the changes I mentioned above. |
Hi, here's a modified pull request with the two methods indicated.
Commands implemented here: