Skip to content

Commit

Permalink
增加元素检测的等待时间
Browse files Browse the repository at this point in the history
  • Loading branch information
luolongfei committed Nov 10, 2021
1 parent 3998052 commit 6925dac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions netflix.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def wrapper(*args, **kwargs):


class Netflix(object):
VERSION = 'v0.3'
VERSION = 'v0.3.1'

# 超时秒数,包括隐式等待和显式等待
TIMEOUT = 23
Expand Down Expand Up @@ -391,7 +391,7 @@ def element_visibility_of(self, xpath: str) -> WebElement or None:
:return:
"""
try:
self.driver.implicitly_wait(0.5)
self.driver.implicitly_wait(2)

el = self.driver.find_element_by_xpath(xpath)

Expand Down

0 comments on commit 6925dac

Please sign in to comment.