-
Notifications
You must be signed in to change notification settings - Fork 220
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
Page navigation broken #454
Comments
There has been no change made to that code for years. Can you provide some more details so I can look into it?
…Sent from my iPad
On Nov 8, 2017, at 9:13 AM, Eric Kessler ***@***.***> wrote:
The dependency upgrade to 0.10.0 of the page_navigation gem appear to have broken PageFactory::PageNavigation#visit_page. Prior to the upgrade, calling visit_page would navigate the browser to the desired page. After the upgrade, no navigation occurs.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
My bad. It turns out that I can, in fact upgrade However, I cannot upgrade past I mistakenly thought that it was the dependency because that is the version where it was changed. Something got broken from then onward, however, because the problem persists all the way from |
So, I am in the process of updating a test suite that hasn't been updated in a while (going from page-object 1.1.0 to 2.2.4), and I just hit the same problem. The issue seems to be with the initialize method in page-object.rb, in which the line
has been changed to
EDIT: Had to set this aside for a while, but working on it today I see that it's the page_url method on the PageObject that defines goto. So, on a page where I've defined direct_url or page_url directly, it works, but the problem is most of my pages are constructing the url using ERB from a common "<%=base_url/relative_url%>" pattern, so they all inherit from a base page. To make visit work I will have to copy and paste it into every single PageObject. |
The dependency upgrade to 0.10.0 of the
page_navigation
gem appear to have brokenPageFactory::PageNavigation#visit_page
. Prior to the upgrade, callingvisit_page
would navigate the browser to the desired page. After the upgrade, no navigation occurs.The text was updated successfully, but these errors were encountered: