ipad连不上wifi-华硕a43s
2023年4月5日发(作者:一键还原精灵官方下载)
PC端浏览器⼿机模拟器滑屏dome
fromseleniumimportwebdriver
importtime
#web=()
'''打开PC浏览器,开发者模式下⼿机模式'''
mobile_emulation={'deviceName':'GalaxyS5'}#deviceName+浏览器开发者模式下的⼿机名称
#mobile_emulation={'deviceName':'iPhone6'}
#mobile_emulation={'deviceName':'VivoX27'}
options=Options()
_argument('lang=zh_-8')
_experimental_option("mobileEmulation",mobile_emulation)
driver=(options=options)
("")
_element_by_id('msKeyWord').click()
_element_by_id('msKeyWord').send_keys('背包')
(2)
_element_by_xpath('//*[@id="msKeys"]/li[2]').click()
(3)
#向下偏移了10000个像素,到达底部。
js="varq=Top=100"
e_script(js)
#(5)
##本来是只有30个元素,设置时间等待js动态加载,结果为60个元素。
#hah=_elements_by_xpath('//*[@id="J_goodsList"]/ul/li')
#print(len(hah))
#()
更多推荐
vivo浏览器
发布评论