修复input_txt()问题

This commit is contained in:
g1879 2021-11-28 23:42:59 +08:00
parent 74b7185563
commit 22416cd86e

View File

@ -363,7 +363,7 @@ class DriverElement(DrissionElement):
from time import perf_counter
t1 = perf_counter()
while self.attr('value') != full_txt and perf_counter() - t1 > self.page.timeout:
while self.attr('value') != full_txt and perf_counter() - t1 <= self.page.timeout:
if clear:
self.clear()