AirtestProject / AirtestProject/Airtest
使用airtest封装的chrome模拟手机浏览器H5页面操作,查找元素时,页面会闪变尺寸
- 主要语言
- Python
- 星标
- 9.6k
- 派生
- 1.5k
- PR 合并指标
- 30 天内没有已合并 PR
描述
Remove any following parts if does not have details about
**Describe the bug**
使用airtest封装的chrome模拟手机浏览器H5页面操作,查找元素时,页面会闪变尺寸,在手机模式和网页模式之前不停切换,不停闪动页面
使用selenium chrome不会出现闪变问题
```
paste traceback here
```
from airtest.core.api import *
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from airtest_selenium.proxy import WebChrome
from selenium.webdriver.common.touch_actions import TouchActions
options = webdriver.ChromeOptions()
# 设置中文
options.add_argument('lang=zh_CN.UTF-8')
options.add_experimental_option('mobileEmulation', mobileEmulation)
driver = WebChrome(chrome_options=options)
driver.get("http://www.baidu.com")
driver.maximize_window()
time.sleep(3)
ele = driver.find_element_by_css_selector("article")
**python version:** `python3.7`
**airtest version:** `1.1.1`


贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。