while executing this I am getting this error can anyone please help me with the solution please

+1 vote
Error occurred during initialization of boot layer
java.lang.module.ResolutionException: Modules okio and java.client export package org.openqa.selenium to module client.combined

Program:

package fittr;

import java.io.File;

import java.net.MalformedURLException;

import java.net.URL;

import org.openqa.selenium.remote.DesiredCapabilities;

import io.appium.java_client.android.AndroidDriver;

import io.appium.java_client.android.AndroidElement;

import io.appium.java_client.remote.MobileCapabilityType;

public class Base {

public static void main(String[] args) throws MalformedURLException {

File f= new File("Src");

File fs= new File(f,"FITTR.6.0_staging.apk");

DesiredCapabilities cap= new DesiredCapabilities();

cap.setCapability(MobileCapabilityType.DEVICE_NAME,"sonalEmulator");

cap.setCapability(MobileCapabilityType.APP, fs.getAbsolutePath());

AndroidDriver<AndroidElement> driver=new AndroidDriver<AndroidElement>(new URL("http://127.0.0.1;4723/wd/hub"),cap);

}

}
Jun 25, 2020 in Software Testing by sonal
• 130 points
1,813 views

1 answer to this question.

0 votes

This happens when you have added the external jars in the ModulePath. Try the following:

  1. Remove the external jars from the node "Modulepath".
  2. Select the node "Classpath" then add the external jars.
  3. Review that all the jars are under the node "Classpath".

This should resolve your issue. 

answered Jun 25, 2020 by Sirajul
• 59,230 points

Related Questions In Software Testing

+1 vote
1 answer

Please help me sir

Hello, You can go through this for complete ...READ MORE

answered Oct 14, 2020 in Software Testing by Niroj
• 82,840 points
626 views
+1 vote
1 answer

Can any one tell me what's wrong in this test case for login thru TestNG

Hi, @Faha, You update your eclipse by clicking ...READ MORE

answered Oct 28, 2020 in Software Testing by anonymous
• 65,770 points
915 views
0 votes
1 answer

How Appium works in iOS?

On iOS, Appium proxies command to a UIAutomation script running in Mac ...READ MORE

answered Jan 18, 2019 in Selenium by Frankie
• 9,830 points
1,193 views
0 votes
1 answer

How Appium works in Andriod?

Appium is an open source test automation tool ...READ MORE

answered Jan 18, 2019 in Selenium by Frankie
• 9,830 points
749 views
0 votes
1 answer

UiPath - Citirx Automation

best way to do that is to ...READ MORE

answered Apr 13, 2018 in RPA by wrecker
• 3,110 points
1,342 views
0 votes
1 answer

UiPath - Web Scraping

Multiple solutions are listed below: Check your Selector Use ...READ MORE

answered Apr 13, 2018 in RPA by wrecker
• 3,110 points
2,032 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP