Skip to content

Instantly share code, notes, and snippets.

@LiuinStein
Last active March 23, 2020 11:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LiuinStein/533d2b9b1374190e7484059c47f6c728 to your computer and use it in GitHub Desktop.
Save LiuinStein/533d2b9b1374190e7484059c47f6c728 to your computer and use it in GitHub Desktop.
app-spider-test
from spider.AbstractSpider import AbstractSpider
class BaiduAppSpider(AbstractSpider):
def execute(self):
self.wait_for_element_loading((self.located_by.ID, 'com.baidu.searchbox:id/eq'), 10)
self.click_element_by_id('com.baidu.searchbox:id/eq')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment