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

undefined method 'window' for Selenium::Session #81

Open
jwoertink opened this issue May 14, 2020 · 6 comments
Open

undefined method 'window' for Selenium::Session #81

jwoertink opened this issue May 14, 2020 · 6 comments
Labels
clarify api Rename/remove/add something to make the API easier to understand

Comments

@jwoertink
Copy link
Member

Upgraded to flow master to try this new stuff out, but getting compile errors:

In spec/support/flows/authenticated_flow.cr:15:13

 15 | session.window.resize_to(2560, 1366)
              ^-----
Error: undefined method 'window' for Selenium::Session

This is related to the new selenium shard. I think the new method is window_manager, but it made me think that we will need to make sure we have a clear upgrade guide on this. So when we do the next release, we will need to document all of the method name changes.

/cc @matthewmcgarvey

@jwoertink jwoertink added bug Something isn't working clarify api Rename/remove/add something to make the API easier to understand labels May 14, 2020
@matthewmcgarvey
Copy link
Member

This occurred because this library exposes the session from the underlying selenium library. It is not a bug of LuckyFlow, though it is a breaking change.

While looking into this, I did find a bug #82

@paulcsmith
Copy link
Member

@jwoertink are you calling “window” directly or is it being called through a LuckyFlow method?

If it’s called directly then I think we could treat this as a documentation thing we need to add to upgrade notes. What do you think?

@jwoertink
Copy link
Member Author

We are calling session.window directly, so we will just need some docs on the upgrade which I'm cool with.

@jwoertink jwoertink removed the bug Something isn't working label May 15, 2020
@matthewmcgarvey
Copy link
Member

I'll try to get the selenium library documented and the documentation published so that it can be referenced where ever it is needed here.

@matthewmcgarvey
Copy link
Member

@jwoertink @paulcsmith This is mostly empty but I've got the api docs for the selenium library published here now https://matthewmcgarvey.github.io/selenium.cr/

@paulcsmith
Copy link
Member

NOICE! That will be awesome to link to

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clarify api Rename/remove/add something to make the API easier to understand
Projects
None yet
Development

No branches or pull requests

3 participants