Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
Resolve python recorder errors (#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgraham authored Oct 23, 2017
1 parent 58e7d92 commit e896619
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/renderer/lib/client-frameworks/python.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ from appium import webdriver
caps = {}
${capStr}
driver = webdriver.remote("http://${this.host}:${this.port}/wd/hub", caps)
driver = webdriver.Remote("http://${this.host}:${this.port}/wd/hub", caps)
${code}
driver.quit()`;
Expand Down Expand Up @@ -70,14 +70,15 @@ driver.quit()`;
}

codeFor_tap (varNameIgnore, varIndexIgnore, x, y) {
return `TouchAction(driver).tap([(${x}, ${y})])`;
return `TouchAction(driver).tap([(${x}, ${y})]).perform()`;
}

codeFor_swipe (varNameIgnore, varIndexIgnore, x1, y1, x2, y2) {
return `TouchAction(driver)
.press(x=${x1}, y=${y1})
.move_to(x=${x2}, y=${y2})
.release()
.perform()
`;
}
}
Expand Down

0 comments on commit e896619

Please sign in to comment.