We are working on putting a large amount of string into the input box.
When working with Send_keys(), it takes too long to work.
Here is the method I found to solve this problem.
import pyperclip
from selenium.webdriver.common.keys import Keys
pyperclip.copy('foo')
element.send_keys(Keys.CONTROL, 'v')
This works very effectively, but returns an empty value in headless mode.
Is there any way to fix this in Heldless mode?