wttech / bobcat

Bobcat is an automated testing framework for functional testing of web applications.
https://cognifide.github.io/bobcat/
Apache License 2.0
90 stars 40 forks source link

How to Override WebDriverProvider and Bind it with new create method? #408

Closed DeChrish closed 4 years ago

DeChrish commented 4 years ago

Hi, We would like to add logical condition to wait to create driver instance before VM;s are available in SauceLabs.

some logic like below if (cachedWebDriver == null) { while (retry) { if (suauceLabsVM !=0) { cachedWebDriver = create(); } }

Source file: https://github.com/Cognifide/bobcat/blob/master/bb-core/src/main/java/com/cognifide/qa/bb/provider/selenium/webdriver/WebDriverProvider.java

Override - SeleniumModule()

mkrzyzanowski commented 4 years ago

Since freshly released 2.2.0, there is the WebDriverCreator mechanism available :).

Please check the following docs: https://cognifide.github.io/bobcat/docs/modules/core/webdriver/#custom-webdriver-creators

DeChrish commented 4 years ago

@mkrzyzanowski Thanks. Pl plan monthly releases.