Skip to content
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

Merged
merged 5 commits into from May 30, 2012
Merged

Various improvements. #30

merged 5 commits into from May 30, 2012

Conversation

alxndrsn
Copy link
Contributor

Hi, here's a modified pull request with the two methods indicated.

Commands implemented here:

GET /session/:id/source
DELETE /session/:id/cookie
GET /session/:id/element/:id/displayed

@detro
Copy link
Owner

detro commented May 28, 2012

Hi.
If you keep committing it will be hard to figure out what is covered by this pull request.

@alxndrsn
Copy link
Contributor Author

Sorry, didn't realise pull requests change as more commits happen.

@ghost ghost assigned detro May 29, 2012
@@ -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.
Copy link
Owner

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it's appropriate.

@alxndrsn
Copy link
Contributor Author

Where are the scripts in src/third_party/webdriver-atoms/ from? It's not clear from them how to map a WebDriver id back to an element in the DOM - is there an easy way to do this?

@detro
Copy link
Owner

detro commented May 29, 2012

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.

@alxndrsn
Copy link
Contributor Author

Ah nice, thanks for the pointer.

@detro
Copy link
Owner

detro commented May 29, 2012

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.

@alxndrsn
Copy link
Contributor Author

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

@detro
Copy link
Owner

detro commented May 30, 2012

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.

detro added a commit that referenced this pull request May 30, 2012
@detro detro merged commit e1ce3ef into detro:master May 30, 2012
@detro
Copy link
Owner

detro commented May 30, 2012

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants