lucky_flow icon indicating copy to clipboard operation
lucky_flow copied to clipboard

undefined method 'window' for Selenium::Session

Open jwoertink opened this issue 5 years ago • 6 comments

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 avatar May 14 '20 21:05 jwoertink

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 https://github.com/luckyframework/lucky_flow/pull/82

matthewmcgarvey avatar May 15 '20 00:05 matthewmcgarvey

@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?

paulcsmith avatar May 15 '20 01:05 paulcsmith

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

jwoertink avatar May 15 '20 14:05 jwoertink

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 avatar May 15 '20 17:05 matthewmcgarvey

@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/

matthewmcgarvey avatar Jun 01 '20 23:06 matthewmcgarvey

NOICE! That will be awesome to link to

paulcsmith avatar Jun 02 '20 16:06 paulcsmith