Running serenity-cucumber on chrome

378 views
Skip to first unread message

bhargav julaganti

unread,
May 2, 2016, 10:28:27 PM5/2/16
to Serenity BDD Users Group
I am new to serenity and uploaded the basic project from maven and trying to run on chrome . when I am trying to run on chrom it is throwing error " web driver could not be instanitated"

I have changed the basic POM as below

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<serenity.version>1.1.26-rc.3</serenity.version>
<serenity.cucumber.version>1.1.1</serenity.cucumber.version>
<webdriver.driver>firefox</webdriver.driver>
<webdriver.chrome>D:\selenium\chromedriver.exe</webdriver.chrome>
</properties>




<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.18.1</version>
<configuration>
<skip>true</skip>
<systemPropertyVariables>
<webdriver.chrome.driver>${webdriver.chrome}</webdriver.chrome.driver>
</systemPropertyVariables>
</configuration>
</plugin>


Any help would be appreciated
pom.xml

Sampathkumar S

unread,
May 4, 2016, 9:46:36 AM5/4/16
to Serenity BDD Users Group
If you are running from CMD console try - 
mvn clean verify -Dwebdriver.driver=chrome

If you are using any IDE set the system property for chrome.
Reply all
Reply to author
Forward
0 new messages