Commit 5cc9ce1
committed
fix(browser): change default wait_until from load to domcontentloaded
Updated the default wait_until parameter from 'load' to 'domcontentloaded'
for browser navigation functions to improve performance and reduce waiting time
for full page loads when not necessary.
This change affects browser_navigate_back and browser_go_forward functions
in the BrowserToolSet class to use 'domcontentloaded' as the default
waiting strategy instead of 'load'.
将默认的 wait_until 参数从 'load' 更改为 'domcontentloaded'
更新了浏览器导航函数的默认 wait_until 参数,从 'load' 改为 'domcontentloaded'
以提高性能并减少不必要的完整页面加载等待时间。
此更改影响 BrowserToolSet 类中的 browser_navigate_back 和
browser_go_forward 函数,使用 'domcontentloaded' 作为默认等待策略
而不是 'load'。
fix #66
Change-Id: Ib5d4120869bfea9ea8a411b16958bf9359572b9f
Signed-off-by: OhYee <oyohyee@oyohyee.com>1 parent 5dd5e41 commit 5cc9ce1
1 file changed
+14
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
751 | 751 | | |
752 | 752 | | |
753 | 753 | | |
754 | | - | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
755 | 758 | | |
756 | 759 | | |
757 | | - | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
758 | 764 | | |
759 | 765 | | |
760 | | - | |
761 | | - | |
| 766 | + | |
| 767 | + | |
762 | 768 | | |
763 | 769 | | |
764 | 770 | | |
765 | 771 | | |
766 | | - | |
767 | | - | |
| 772 | + | |
| 773 | + | |
768 | 774 | | |
769 | 775 | | |
770 | 776 | | |
| |||
970 | 976 | | |
971 | 977 | | |
972 | 978 | | |
973 | | - | |
| 979 | + | |
974 | 980 | | |
975 | 981 | | |
976 | 982 | | |
| |||
996 | 1002 | | |
997 | 1003 | | |
998 | 1004 | | |
999 | | - | |
| 1005 | + | |
1000 | 1006 | | |
1001 | 1007 | | |
1002 | 1008 | | |
| |||
0 commit comments