River. Find_element_by_xpath ("//textarea [@ id=\ "agentLoginsString \]"). The send_keys (x)
But a large quantity of data, copy and paste them one by one is very slow, so, want to know if I will read the content directly to an array, send_keys can () the whole array of disposable sequential paste into the same input box?
The content of the input is about this format:
A,
B,
C,
D,
E,
Before the use of the method is:
For j in range (Start, End) :
The Login=sheet. Cell (row=j, the column=2). The value
Driver. Find_element_by_xpath ("//textarea [@ id=\ "agentLoginsString \]"). The send_keys # (Login) in the search box input
The Login="\ r \ n"
CodePudding user response:
Is likely to slow under analysis is slow in which link, selenium processing time interval is 250 ms, not as slow as you say.I think should be you deal with excel time consuming too much sheet. The cell ()
So so, just put abcdef... One-time sheet. Get_cells () out on the memory list
Then the for send_keys inside ()