Home > other >  Appium executing scripts slowly! Click the button to be 8 or 9 seconds!!!!!
Appium executing scripts slowly! Click the button to be 8 or 9 seconds!!!!!

Time:03-11

Simulator and real machine are the same, when the login is not slow, is the execution after logging in each element must be 8 or 9 seconds, thought is the xpath location is slow, but change the locating method is still the same!! My feeling is with appium interaction! My environment is python3.5 + appium1.7.1! The following is my script and log! (I don't see the log, the answers to the great god! Urgent)



[HTTP] - & gt; POST/wd/hub/session/45 b3cf9542 d30326 - the 3591-4083-8256-1700/element {" value ":"//* [@ text='you haven't binding equipment, first binding!'] ", "using" : "xpath", "sessionId" : "b3cf9542 d30326 45-3591-4083-8256-1700"}
[MJSONWP] Calling AppiumDriver. FindElement () with the args: [" xpath ", "//* [@ text='you haven't binding equipment, first binding!']", "45 d30326 b3cf9542" - the 3591-4083-8256-1700]
[BaseDriver] Valid locator strategies for this request: xpath, id, class name, the org.eclipse.swt.accessibility id - android uiautomator
[BaseDriver] Valid locator strategies for this request: xpath, id, class name, the org.eclipse.swt.accessibility id - android uiautomator
[BaseDriver] Waiting up to 10000 ms for condition
[AndroidBootstrap] Sending the command to android: {" CMD ":" action ", "action" : "find", "params" : {" strategy ":" xpath ", "selector" : "//* [@ text='you haven't binding equipment, first binding!']", "context" : ""," multiple ": false}}
[AndroidBootstrap] [the BOOTSTRAP LOG] [the debug] Got the data from the client: {" CMD ":" action ", "action" : "find", "params" : {" strategy ":" xpath ", "selector" : "//* [@ text='you haven't binding equipment, first binding!']", "context" : ""," multiple ": false}}
[AndroidBootstrap] [the BOOTSTRAP LOG] [the debug] Got the command of the type ACTION
[AndroidBootstrap] [the BOOTSTRAP LOG] [the debug] Got the command action: find
[AndroidBootstrap] [the BOOTSTRAP LOG] [the debug] Finding '//* [@ text=' you haven't binding equipment, first binding! '] 'using' XPATH 'have the contextId:' multiple: false
[AndroidBootstrap] [the BOOTSTRAP LOG] [the debug] Failed to locate element, Clearing the org.eclipse.swt.accessibility cache and retrying.
[AndroidBootstrap] [the BOOTSTRAP LOG] [the debug] Finding '//* [@ text=' you haven't binding equipment, first binding! '] 'using' XPATH 'have the contextId:' multiple: false
[AndroidBootstrap] [the BOOTSTRAP LOG] [the debug] Returning the result: {7, "status" : "value" : "No element found"}
[AndroidBootstrap] Received the command result from the bootstrap
[BaseDriver] Waited for 137 ms so far
[AndroidBootstrap] Sending the command to android: {" CMD ":" action ", "action" : "find", "params" : {" strategy ":" xpath ", "selector" : "//* [@ text='you haven't binding equipment, first binding!']", "context" : ""," multiple ": false}}
[AndroidBootstrap] [the BOOTSTRAP LOG] [the debug] Got the data from the client: {" CMD ":" action ", "action" : "find", "params" : {" strategy ":" xpath ", "selector" : "//* [@ text='you haven't binding equipment, first binding!']", "context" : ""," multiple ": false}}
[AndroidBootstrap] [the BOOTSTRAP LOG] [the debug] Got the command of the type ACTION
[AndroidBootstrap] [the BOOTSTRAP LOG] [the debug] Got the command action: find
[AndroidBootstrap] [the BOOTSTRAP LOG] [the debug] Finding '//* [@ text=' you haven't binding equipment, first binding! '] 'using' XPATH 'have the contextId:' multiple: false
[AndroidBootstrap] [the BOOTSTRAP LOG] [the debug] Using: UiSelector [CLASS=android. Widget TextView, INSTANCE=3]
[AndroidBootstrap] [the BOOTSTRAP LOG] [the debug] Returning the result: {" status ": 0," value ": {" ELEMENT" : "5"}}
[AndroidBootstrap] Received the command result from the bootstrap
[MJSONWP] Responding to the client with driver. FindElement () result: {" ELEMENT ":" 5 "}
[HTTP] <- POST/wd/hub/session/45 d30326 b3cf9542/element - the 3591-4083-8256-1700 200 10806 ms - 87
[HTTP] - & gt; POST/wd/hub/session/d30326 - the 3591-4083-8256-45

CodePudding user response:

The building Lord solved
  • Related