【发布时间】:2021-08-22 18:12:17
【问题描述】:
有没有办法让我的发送键在键入字符时变慢。 很难减慢它的打字速度。 我尝试使用 Sleep 方法,但不起作用。
A('Starting up browser...')
e=l()
e.add_argument('disable-infobars')
B=k.Chrome(options=e)
B.implicitly_wait(5)
n=[0.02,0.04,0.03]
o=[F,J]
def f(word):
A=word;A=list(A);C=[]
for E in i(10):C.append([G(U),d.BACKSPACE])
F=G(o)
if F:
I=G([1,2,3])
for E in i(I):A.insert(G(i(j(A))),G(C))
A=[C for B in A for C in B]
D=B.find_element_by_css_selector('.selfTurn input')
for J in A:K=G(n);D.send_keys(J);H(K)
H(0.2);D.send_keys(d.ENTER)
A('Navigating to the JKLM website...')
B.get(m)
g=J
【问题讨论】:
-
由于缺乏正确的格式和使用单字母变量名,您的代码很难理解。
标签: python selenium selenium-webdriver