Skip to content

Adding URL related conditions - #370

Closed
davefx wants to merge 4 commits into
php-webdriver:communityfrom
davefx:patch-1
Closed

davefx wants to merge 4 commits into
php-webdriver:communityfrom
davefx:patch-1

Conversation

@davefx

@davefx davefx commented Dec 15, 2016

Copy link
Copy Markdown
Contributor

No description provided.

@facebook-github-bot

Copy link
Copy Markdown

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at [email protected]. Thanks!

If you are contributing on behalf of someone else (eg your employer): the individual CLA is not sufficient - use https://developers.facebook.com/opensource/cla?type=company instead. Contact [email protected] if you have any questions.

@facebook-github-bot

Copy link
Copy Markdown

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@OndraM

OndraM commented Dec 16, 2016

Copy link
Copy Markdown
Collaborator

Hi @davefx, great contribution! May I ask you for the following, before we can marge this new feature?

  • squash all the commits into one
  • I would prefer naming the methods in the same as in the Java library - see ExpectedConditions.java#L101 (so the name would be urlToBe())
  • What do you think about adding one more method (to follow the java library as well) - urlMatches (ExpectedConditions.java#L147), which will check for regular expression in the URL? Would be also quite handy imho.

/**
* An expectation for checking the URL of a page.
*
* @param string $url The expected URL, which must be an exact match.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

There is no need to break the line here, the line limit is 120 characters :)


/**
* An expectation for checking substring of the URL of a page.
*

@OndraM OndraM Dec 16, 2016 •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

maybe call the parameter $urlSubstring for better readability?

@OndraM

OndraM commented Dec 27, 2016

Copy link
Copy Markdown
Collaborator

@davefx Sorry to bother, but will you find time to finish the changes? It would be great to get it to a new version of php-webdriver!

However, if you can't, I can do the adjustments myself (and keep you the credit of course). Let me know please :).

@OndraM OndraM mentioned this pull request Jan 8, 2017
@OndraM

OndraM commented Jan 8, 2017

Copy link
Copy Markdown
Collaborator

Replaced by #390, thanks @davefx!

@OndraM OndraM closed this Jan 8, 2017
@OndraM

OndraM commented Jan 14, 2017

Copy link
Copy Markdown
Collaborator

New conditions were released as part of php-webdriver 1.3.0! Thanks again for your contribution, @davefx .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants