Provide shortcut method for combining "to" and "at" #1

Closed
geb-bot opened this Issue Nov 1, 2010 · 7 comments

Projects

None yet

2 participants

@geb-bot
geb-bot commented Nov 1, 2010

Originally created by Luke Daley.

@geb-bot
geb-bot commented Dec 3, 2010

Originally posted by Robert Fletcher.

What would the purpose of this be? Doesn't 'to' already verify the page? If not, I think it should.

@geb-bot
geb-bot commented Dec 3, 2010

Originally posted by Luke Daley.

it doesn't, because the request may redirect to a different page.

@geb-bot
geb-bot commented Jun 4, 2011

Originally posted by Alexander Zolotov.

In most cases, after calling 'to' I'm checking that I am on right page. So you may want to insert verification of page in "to" method and come up with shortcut to changing page without verification.

For example:

  1. to SomePage - change page and verify it
  2. to SomePage, verify: false - change page without verification
@geb-bot
geb-bot commented Mar 20, 2012

Originally posted by Christoph Neuroth.

+1 on Alexanders suggestion. Any reasons against that?

@geb-bot
geb-bot commented Mar 21, 2012

Originally posted by Luke Daley.

The problem is that it clashes with this feature:

http://www.gebish.org/manual/current/page-navigation.html#advanced_page_navigation

My current thinking on this is that we should change to() to have this behaviour, but add a new maybeTo() method.

@geb-bot
geb-bot commented Aug 29, 2012

Originally posted by Marcin Erdmann.

Resolved in geb/geb@c84cbdd by adding toAt() method.

@geb-bot
geb-bot commented Aug 29, 2012

Resolved

@geb-bot geb-bot added the New feature label Apr 12, 2015
@erdi erdi was assigned by geb-bot Apr 12, 2015
@geb-bot geb-bot added this to the 0.9.0 milestone Apr 12, 2015
@geb-bot geb-bot closed this Apr 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment