question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No easy way to wait for webdriver start

See original GitHub issue

I’ve tried to set up Protractor with Grunt via grunt-protractor-runner. The problem is that I want to be able to run all that automatically and:

  1. Protractor needs webdriver start to be run manually
  2. There is apparently no way to tell when webdriver is ready.

This creates a problem as my grunt testE2E command has to start webdriver somehow to be able to run Protractor tests. webdriver start cannot be run in a synchronous mode since it blocks but it also cannot be run in the background as then Protractor doesn’t wait until it’s fully initialized.

Is there any way around that? I want to test in both Firefox & Chrome so I need the Seleniun server for that.

EDIT: I assume there is no Firefox driver available that would allow one to skip Selenium for this browser as well? (i.e. it’s not only an issue of implementing support in Protractor but that needed software is missing?)

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

20reactions
elgalucommented, Jan 20, 2014

Protractor would start a selenium-webdriver server automatically if you omit the seleniumAddress config option 😉 so all is needed is a config file and to run protractor e2e.conf.js that’s it.

0reactions
samueltcsantoscommented, Jul 11, 2017

Nice!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to get Selenium to wait for a page to load - BrowserStack
Wondering how to wait for a web page to load in Selenium testing? Read tutorial to understand 3 methods to execute the same....
Read more >
How can I ask the Selenium-WebDriver to wait for few ...
Whenever you need to wait, you can do it explicitly by checking existance of a certain element (such element may vary from page...
Read more >
How to Get Selenium Wait for Page to Load [2023 Updated]
WebDriverWait is a great command, except that it does not let us handle the polling time for the test cases. Instead, it comes...
Read more >
WebDriverWait: When and How to Wait in Selenium Testing
"webdriverwait" is an important feature in Selenium. It allows you to pause your test until some condition is met. Learn more in our...
Read more >
Waits - Selenium
Explicit wait · WebDriver driver = new ChromeDriver(); driver.get("https://google.com/ncr"); driver. · from selenium.webdriver. · driver = new ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found