Skip to content
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

can anyone tell me how to run acceptance in safari??? I am able to run in chrome, phantom and firefox #3850

Closed
rajabhaskar opened this issue Dec 19, 2016 · 3 comments

Comments

@rajabhaskar
Copy link

rajabhaskar commented Dec 19, 2016

can anyone tell me how to run acceptance in safari??? I am able to run in chrome, phantom and firefox

What do you get instead?

Provide console output if related. Use -vvv mode for more details.

  [Facebook\WebDriver\Exception\UnknownServerException]
  The best matching driver provider org.openqa.selenium.edge.EdgeDriver can't
   create a new driver instance for Capabilities [{browserName=safari, handle
  sAlerts=true, unexpectedAlertBehaviour=accept}]
  Build info: version: '2.53.0', revision: '35ae25b', time: '2016-03-15 17:00
  :58'
  System info: host: 'MSI-VIZ-DHP-046', ip: '192.168.180.21', os.name: 'Windo
  ws 8.1', os.arch: 'amd64', os.version: '6.3', java.version: '1.8.0_91'
  Driver info: driver.version: unknown

Provide test source code if related

I am trying like below....

Running server as
java -jar vendor/selenium/selenium-server/selenium-server-standalone-2.53.0.jar -Dwebdriver.safari.driver=vendor/selenium/safaridriver/selenium-safari-driver-2.29.1.jar


and running acceptance as 
codecept run acceptance Landing.feature --skip-group skip -vvv --html

Details

  • Codeception version:
  • PHP Version:
  • Operating System:
  • Installation type: Phar || Composer
  • List of installed packages (composer show)
  • Suite configuration:
# paste suite config here
@edno
Copy link
Contributor

edno commented Dec 19, 2016

More likely a php-webdriver issue, see php-webdriver/php-webdriver#345

@DavertMik
Copy link
Member

Thanks @edno
Probably it's even more general selenium issue :(

@rajabhaskar
Copy link
Author

rajabhaskar commented Dec 20, 2016

@DavertMik @edno Does this mean Codeception won't work in Safari? Sorry if I misunderstood your answers. I just wanted to run my suite in safari browser in Windows 8 OS. Below is my acceptance.yml file configuration

modules:
enabled:
- WebDriver
- \Helper\Acceptance
- \Helper\Locator
- \Helper\User
- \Helper\TestData
config:
WebDriver:
url: 'https://www.abc.com'
browser: safari
wait: 2
window_size: maximize
clear_cookies: false
capabilities:
unexpectedAlertBehaviour: 'accept'
handlesAlerts: true

but it is not working. If I replace the browser name with Chrome (and run executable) or firefox then I was able to run my suite. Please advise.
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants