mirror of
https://gitee.com/g1879/DrissionPage.git
synced 2024-12-10 04:00:23 +08:00
完善切入iframe逻辑
This commit is contained in:
parent
6482dfec51
commit
c9f73760ff
@ -450,7 +450,7 @@ class DriverPage(object):
|
||||
self.driver.switch_to.parent_frame()
|
||||
|
||||
# 传入id或name
|
||||
elif ':' not in loc_or_ele and '=' not in loc_or_ele:
|
||||
elif ':' not in loc_or_ele and '=' not in loc_or_ele and not loc_or_ele.startswith(('#', '.')):
|
||||
self.driver.switch_to.frame(loc_or_ele)
|
||||
|
||||
# 传入控制字符串
|
||||
|
Loading…
x
Reference in New Issue
Block a user