Error- io.appium.java_client.remote.AppiumCommandExecutor$1 lambda$0
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.3k
- Forks
- 752
- Avg merge
- 6d 21h
- Merged PRs (30d)
- 8
Description
## Environment
- Java client build version: 7.2.0
- Appium server version: v1.18.3
- Mobile platform/version under test: Pixel_3_API_29
- Real device or emulator/simulator: emulator
## Details
Pom dependencies-
io.appium
java-client
7.2.0
org.seleniumhq.selenium
selenium-java
2.53.1
org.json
json
20080701
## Code To Reproduce Issue
package testRunner;
import java.net.MalformedURLException;
import java.net.URL;
import org.openqa.selenium.remote.DesiredCapabilities;
import io.appium.java_client.MobileElement;
import io.appium.java_client.android.AndroidDriver;
import io.appium.java_client.remote.MobileCapabilityType;
public class first_Test {
static AndroidDriver driver;
public static void openApp() throws MalformedURLException, InterruptedException {
DesiredCapabilities dc = new DesiredCapabilities();
dc.setCapability(MobileCapabilityType.DEVICE_NAME, "emulator-5554");
dc.setCapability("platformName", "android");
dc.setCapability("appPackage", "com.massageenvy.consumer.android.pwa.qa");
dc.setCapability("appActivity", "io.ionic.starter.MainActivity");
dc.setCapability("appWaitDuration", 50000);
dc.setCapability("autoWebview", true);
dc.setCapability("autoGrantPermissions", true);
driver = new AndroidDriver<MobileElement> (new URL("http://127.0.0.1:4723/wd/hub"),dc);
Thread.sleep(10000);
}
public static void main(String[] args) throws Exception {
openApp();
}
}
## Eclipse log-
===== program started =====
Dec. 09, 2020 7:33:17 P.M. io.appium.java_client.remote.AppiumCommandExecutor$1 lambda$0
INFO: Detected dialect: W3C
Exception in thread "main" java.lang.NoSuchMethodError: 'org.openqa.selenium.Platform org.openqa.selenium.Platform.fromString(java.lang.String)'
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:230)
at io.appium.java_client.AppiumDriver.startSession(AppiumDriver.java:323)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:130)
at io.appium.java_client.DefaultGenericMobileDriver.(DefaultGenericMobileDriver.java:37)
at io.appium.java_client.AppiumDriver.(AppiumDriver.java:86)
at io.appium.java_client.AppiumDriver.(AppiumDriver.java:96)
at io.appium.java_client.android.AndroidDriver.(AndroidDriver.java:94)
at testRunner.first_Test.openApp(first_Test.java:24)
at testRunner.first_Test.main(first_Test.java:31)
## Link To Appium Logs
https://gist.github.com/Kaamini1/99cd462d0816c489130e3376e32e84a0
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Maven dependencies in the issue and the RemoteWebDriver.startSession stack trace, then reproduce the failure using the supplied AndroidDriver example. Compare the Java client and Selenium versions involved; the issue is complete when the reported NoSuchMethodError is resolved and the example can start a session.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- mobile, testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100