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

Enable selenium grid support#40 #42

Closed
wants to merge 3 commits into from

Conversation

s4int
Copy link

@s4int s4int commented Jun 1, 2015

No description provided.

@kahunacohen
Copy link

Do we need a test for this?

@s4int
Copy link
Author

s4int commented Jun 1, 2015

This is just use of capabilities in my opinion even simpler than for sauce.

Testing this can be quite tricky because it requires working selenium grid.
You can think about unifying use of capabilities for grid and sauce, then tests can verify passing values.

@kahunacohen
Copy link

👍 Looks good to me. @hellmanj , @frishberg ?

@kahunacohen kahunacohen changed the title Fix ncbi/robotframework-pageobjects#40 Enable selenium grid support#40 Jun 1, 2015
@@ -154,7 +155,13 @@ def __init__(self):

self._attempt_sauce = self._validate_sauce_options()

# There's only a session ID when using a remote webdriver (Sauce, for example)
self._Capabilities = getattr(webdriver.DesiredCapabilities, self.browser.upper())
for grid_cap in self._Capabilities:
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems like we're checking all options in DesiredCapabilities here not just grid-related ones. I think that's fine, but we shouldn't use "grid" in these variable names.

@hellmanj
Copy link
Contributor

hellmanj commented Jun 1, 2015

Also, it would be great if you could you update the readme with a brief section on using grid.

@s4int
Copy link
Author

s4int commented Jun 1, 2015

Ok, I will add short description how to use capabilities.

@kahunacohen
Copy link

Please also briefly mention in the README why choose sauce over grid and vice versa. We are pretty unfamiliar with grid.

@s4int
Copy link
Author

s4int commented Jun 5, 2015

Basically Sauce Labs is a fancy selenium grid. Grid is simpler and you can run it in your env.

@kahunacohen
Copy link

Looks good to me. In the read me we may want to specify these are options related to grid and not necessary for running in sauce. Otherwise looks good. Jared? Daniel?

@kahunacohen
Copy link

@hellmanj , @frishberg Are we ok to merge this? Do the option names make sense, or should they be pre-fixed with grid_?

@hellmanj
Copy link
Contributor

hellmanj commented Jun 9, 2015

It's probably fine for now, we can change later if it's apparent there is any confusion.

@kahunacohen
Copy link

OK I am going to reorder the options in the README and merge.

@kahunacohen kahunacohen closed this Jun 9, 2015
@kahunacohen
Copy link

I closed this because I pushed this forked branch to origin. I will open another PR there.

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

Successfully merging this pull request may close these issues.

3 participants