【发布时间】:2015-03-08 13:38:50
【问题描述】:
我正在使用 appium 为 android 应用程序编写 Python 脚本中的测试用例。我想在特定的边界/坐标中执行单击/点击操作。但我无法执行。谁能告诉我怎么做。
class firstTest(unittest.TestCase):
def tearDown(self):
"Tear down the test"
self.driver.quit()
def test_single_player_mode(self):
time.sleep(5)
element = self.driver.find_element_by_name("Enter your Email ID or User name")
element.send_keys("username")
element = self.driver.find_element_by_name("Let's get started!")
element.click()
time.sleep(5)
直到'让我们开始它工作正常。在 UI 中之后,我没有任何元素名称或 ID。我只有特别绑定单击该元素。我想点击绑定的[918,154][1086,324]资源ID,上面绑定的是“com.abc.android.cap:id/friends_selection_list”请告诉我之后怎么做。
【问题讨论】:
-
你找到解决方案了吗?
-
不,我没有得到任何解决方案
-
我还有一个问题,你能提出建议吗?请查看此链接stackoverflow.com/questions/27898661/…
-
查看我的评论...
标签: android python selenium appium