Bug546_lixiaofeng #109

Closed
lixiaofeng wants to merge 4 commits from <deleted>:Bug546_lixiaofeng into Alpha-snapshot20230621
There is no content yet.
lixiaofeng added 3 commits 2024-04-12 19:55:09 +08:00
mrlan reviewed 2024-04-21 14:13:45 +08:00
@ -0,0 +7,4 @@
@pytest.fixture
def driver():
# 初始化浏览器驱动
driver = webdriver.Chrome(ChromeDriverManager().install())

@lixiaofeng

不需要自定义。
可以用 conftest.py 的 driver 吗?
使用 webdriver-manager 来安装 WebDriver 想法不错,但是运行速度慢了很多。

@lixiaofeng 不需要自定义。 可以用 conftest.py 的 driver 吗? 使用 webdriver-manager 来安装 WebDriver 想法不错,但是运行速度慢了很多。

@lixiaofeng

Please change the target branch to Alpha-snapshot20230621.

The target branch should not be master.

@lixiaofeng Please change the target branch to Alpha-snapshot20230621. The target branch should not be master.
lixiaofeng changed title from Bug546_lixiaofeng to Bug546_lixiaofeng 2024-05-20 20:46:39 +08:00
lixiaofeng changed target branch from master to Alpha-snapshot20230621 2024-05-20 20:46:40 +08:00
lixiaofeng added 1 commit 2024-05-20 20:47:35 +08:00

测试方法的原理是自动操作光标选中一定区域,划到单词就会高亮,这个时候再检索mark元素是否非空就能验证测试结果;但是有些文章长度过短或者只有一个大标题,这个时候我设定的光标移动区域的参数可能选不到一个单词,这样子mark元素为空,则fail。大多数情况下文章正常测试就是pass。

测试方法的原理是自动操作光标选中一定区域,划到单词就会高亮,这个时候再检索mark元素是否非空就能验证测试结果;但是有些文章长度过短或者只有一个大标题,这个时候我设定的光标移动区域的参数可能选不到一个单词,这样子mark元素为空,则fail。大多数情况下文章正常测试就是pass。
lixiaofeng closed this pull request 2024-05-27 22:38:13 +08:00

Pull request closed

Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: mrlan/EnglishPal#109
There is no content yet.