user1593846
user1593846

Reputation: 756

Accept a Confirm box with PHPUnit_Extensions_Selenium2TestCase

I have found a ton of solutions in other languages but not with php, any suggestions?, I thought I could just use $this->keysSpecial('ENTER'); when it pops up but if i understand it it stops the selenium test when a popup apears.

Upvotes: 1

Views: 1001

Answers (1)

emuffinman
emuffinman

Reputation: 11

$this->acceptAlert();

I had this same problem last week and it took me hours to find the solution. I tried the keysSpecial('ENTER'), I tried chooseOkOnNextConfirmation() which I found out they didn't implement in php.

I wish I had bookmarked where I found it, phpunit Selenium documentation is awful and you get downvoted to oblivion when you ask questions about it.

Hope that was what you were looking for!

Upvotes: 1

Related Questions