0

I have a Selenium script set up on a loop to fuzz input fields on an webapp. There's 38 input divs per fuzzing permutation so iterating through all of the fields and modifying them with send_keys() takes ~5 seconds. I'm wondering if instead of iterating through each input div individually, is it possible to modify all 38 input divs simultaneously? Something like a "multicast input to all divs" function?

3
  • 2
    I dont think that is possible. No. Basically for most if the UI frameworks including html web the ui interacrion is permitted only single threadedly. Hence it may not be possible to update multiple fields in parallel. Commented Apr 16, 2021 at 2:48
  • Similar question. Probably you can do this only with requests stackoverflow.com/questions/39731338/… Commented Apr 16, 2021 at 2:53
  • @vitaliis Both are not the same as he is asking how to fill through multicast/multi threading not through iterating. But I agree with requests it would be easy Commented Apr 16, 2021 at 3:02

1 Answer 1

0

Selenium is a tool that aims to reproduce human interaction with UI. A human cannot fill several inputs simultaneously so that Selenium does not support this. If you need to speed up your test use CSS locators if you do not use them yet.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.