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:
selenium-java
version explicitly, Appium will handle it on its own. When you import it, you may raise incompatibility issues. 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.