简体   繁体   中英

“Method has not yet been implemented” exception for appium `HasClipboard()`

Below is my code in Java

String text = "54321";
((HasClipboard) BaseClass.driver).setClipboardText(text);
TouchAction t=new TouchAction(BaseClass.driver);`

Getting Exception for the above code.

Configuration: Selenium-java 3.13.0, Java-client 6.1.0, android-test 2.1.1

It means that Appium server version you are using is not supporting the API call for POST /wd/hub/session/:session_id/appium/device/set_clipboard from appium-java-client you are using.

Notes:

  1. Don't set selenium-java version explicitly, Appium will handle it on its own. When you import it, you may raise incompatibility issues.
  2. Try to install the latest appium server , and update client library to 7.0.0. There are lots of ongoing changes so appium/device/set_clipboard maybe affected

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM