我需要在我的xpath表达式中使用撇号('),我需要在使用webdriver查找元素时使用它
我需要在Xpath表达式下使用
//input[@text="WE'd like to hear from you"]
Run Code Online (Sandbox Code Playgroud)
在find元素函数中使用上面的表达式时,我用单引号替换双引号
driver.findelements(By.xpath("//input[@text='WE'd like to hear from you']"))
Run Code Online (Sandbox Code Playgroud) 当我尝试通过 adb 启动应用程序时,我遇到了异常
java.lang.SecurityException:权限拒绝:启动意图
使用的 CMD: adb shell am start -n pakage/mainactivity name