Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

ChromeDriver issues in Pipelines while running selenium Maven Project

Chaitanya_Chintala
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 25, 2020

Hi, I'm trying to run Maven Selenium Project in BitBucket Pipelines with Cucumber framework. I have basic test cases to test the Webpage title. Testcases ran fine in my local. The same when i try to run in BitBucket-Pipelines, build is failing with below error.

"/root/.m2/repository/webdriver/chromedriver/linux64/80.0.3987.106/chromedriver: error while loading shared libraries: libglib-2.0.so.0: cannot open shared object file: No such file or directoryMar 25, 2020 3:01:26 PM org.openqa.selenium.os.OsProcess checkForError".

 

Below is my Yaml file

image: maven:3.6.1

pipelines:

default:

- step:

caches:

- maven

script:

- mvn -B verify # -B batch mode makes Maven less verbose

 

Pom.xml as follows

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>org.example</groupId>
<artifactId>Selenuim_Cucumber</artifactId>
<version>1.0-SNAPSHOT</version>

<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>

<dependencies>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-java</artifactId>
<version>4.7.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-junit</artifactId>
<version>4.7.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-picocontainer</artifactId>
<version>4.7.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-core</artifactId>
<version>4.7.1</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>3.14.0</version>
</dependency>
<dependency>
<groupId>io.github.bonigarcia</groupId>
<artifactId>webdrivermanager</artifactId>
<version>3.8.1</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-chrome-driver</artifactId>
<version>2.53.0</version>
</dependency>
</dependencies>

</project>

 

Am i doing anything wrong? Please suggest your ways.

1 answer

0 votes
hamza848riaz
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 12, 2022

hii bro did you get the soulution for this , please let me know I am stuck from 2 weeks

Nirav Panchal
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 1, 2022

I am also stuck from 2 weeks as well.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events