Unable to create a driver instance

1,368 views
Skip to first unread message

Nandesh Kalyankar

unread,
Nov 20, 2017, 7:10:23 AM11/20/17
to qaf users
QAF Version

qaf-2.1.12RC
qaf-support-2.1.11Rc1


Steps To Reproduce

1. Try to execute the qaf-blank-project, sample test case & the following error is shown

Unable to create driver instance in 1st attempt with retry timeout of 10 seconds. You can check/set value of 'driver.init.retry.timeout' appropriately to set retry timeout on driver initialization failure.Could not initialize class com.qmetry.qaf.automation.ui.UiDriverFactory$Browsers

Changed the following values in application.properties & could still see a failure

remote.port=3089
chrome.additional.capabilities={"proxy":{"proxyType":"MANUAL","autodetect":false,"httpProxy":"localhost:8080"}}

Could you please tell me what else changes are required to create driver instance?

cjayswal

unread,
Nov 26, 2017, 10:55:34 PM11/26/17
to qaf users
What is the value of driver.name property you are using?

In case of chrome driver, make sure you have following properties configured:

driver.name=chromeDriver
#set chrome driver path
webdriver.chrome.driver=./server/chromedriver.exe

In case If your AUT is behind an HTTP proxy

#proxy setting
system.
http.proxyHost=proxy IP address
system.http.proxyPort=proxy port
#system.http.proxyUser=user name if HTTP-proxy authentication required;
#system.http.proxyPassword=user password if HTTP-proxy authentication required.
Reply all
Reply to author
Forward
0 new messages