Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
540 views
in Technique[技术] by (71.8m points)

java - SendKeys() in Selenium is too slow while typing words into a text box in IE browser

I am reading an excel row which has 4 or 5 cells and I am sending the data one by one to text boxes on a webpage using sendKeys() in selenium. But its too slow. Suppose I got a word 78845 from the first cell in the excel, then while inserting into the text box it takes 5 seconds like 7 then 5 seconds then 8 again wait for 5 seconds and so on. Its too slow.

What can be done here?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Add "iexplore.exe" in Registry.

1.Press "Start button + R".
2.Type "regedit".
3.In opened Registry Editor window, navigate to below path:

HKEY LOCAL MACHINE > Software > wow6432Node > Microsoft > Internet Explorer > Main > Feature Control > FEATURE_BFCACHE

4.Right click on "FEATURE_BFCACHE" > click "New" > Click "DWORD (32bit) Value".
5.Enter "iexplore.exe" and save.

Now, run your Test Cases. It will be faster than previous.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...