网站群建设公司,wordpress判断为空,成都住建局官网报名入口,建网站资料我无法使用AppiumJava在Android的权限对话框中点击“拒绝”或“允许”按钮.在点击这些按钮之前,是否需要添加任何功能#xff1f;以下是代码#xff1a;DesiredCapabilities capabilities new DesiredCapabilities();capabilities.setCapability(platformName, …我无法使用AppiumJava在Android的权限对话框中点击“拒绝”或“允许”按钮.在点击这些按钮之前,是否需要添加任何功能以下是代码DesiredCapabilities capabilities new DesiredCapabilities();capabilities.setCapability(platformName, Android);capabilities.setCapability(deviceName, ASUS_Z00LD);capabilities.setCapability(platformVersion, 6.0);capabilities.setCapability(app,);capabilities.setCapability(browserName, );AndroidDriver driver new AndroidDriver(new URL(http://127.0.0.1:4723/wd/hub), capabilities);Thread.sleep(10000);driver.findElement(MobileBy.id(permission_allow_button)).click();以下是Eclipse控制台中的错误org.openqa.selenium.NoSuchElementException: An element could not be located on the page using the given search parameters. (WARNING: The server did not provide any stacktrace information)以下是Appium日志info: [debug] Responding to client with success: {status:0,value:{platform:LINUX,browserName:,platformVersion:6.0.1,webStorageEnabled:false,takesScreenshot:true,javascriptEnabled:true,databaseEnabled:false,networkConnectionEnabled:true,locationContextEnabled:false,warnings:{},desired:{app:/Users/Shiva/Documents/workspace/AndroidPractice/APK/****_Android.apk,browserName:,platformName:Android,deviceName:ASUS_Z00LD,platformVersion:6.0},app:/Users/Shiva/Documents/workspace/AndroidPractice/APK/****_Android.apk,platformName:Android,deviceName:FAAZCY127084},sessionId:b64fd5af-3de5-4299-a2d4-1948fc8e883e}info: info: -- POST /wd/hub/session/b64fd5af-3de5-4299-a2d4-1948fc8e883e/element {using:id,value:permission_allow_button}info: [debug] Waiting up to 0ms for conditioninfo: [debug] Pushing command to appium work queue: [find,{strategy:id,selector:permission_allow_button,context:,multiple:false}]info: [debug] [BOOTSTRAP] [debug] Got data from client: {cmd:action,action:find,params:{strategy:id,selector:permission_allow_button,context:,multiple:false}}info: [debug] [BOOTSTRAP] [debug] Got command of type ACTIONinfo: [debug] [BOOTSTRAP] [debug] Got command action: findinfo: [debug] [BOOTSTRAP] [debug] Finding permission_allow_button using ID with the contextId: multiple: falseinfo: [debug] [BOOTSTRAP] [debug] Using: UiSelector[INSTANCE0, RESOURCE_IDcom.****.****:id/permission_allow_button]info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[INSTANCE0, RESOURCE_IDandroid:id/permission_allow_button]info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[DESCRIPTIONpermission_allow_button, INSTANCE0]info: [debug] [BOOTSTRAP] [debug] Failed to locate element. Clearing Accessibility cache and retrying.info: [debug] [BOOTSTRAP] [debug] Finding permission_allow_button using ID with the contextId: multiple: falseinfo: [debug] [BOOTSTRAP] [debug] Using: UiSelector[INSTANCE0, RESOURCE_IDcom.****.****:id/permission_allow_button]info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[INSTANCE0, RESOURCE_IDandroid:id/permission_allow_button]info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[DESCRIPTIONpermission_allow_button, INSTANCE0]info: [debug] [BOOTSTRAP] [debug] Returning result: {status:7,value:No element found}info: [debug] Condition unmet after 178ms. Timing out.info: [debug] Responding to client with error: {status:7,value:{message:An element could not be located on the page using the given search parameters.,origValue:No element found},sessionId:b64fd5af-3de5-4299-a2d4-1948fc8e883e}info: 任何人帮助克服这一点将不胜感激