Closed
Description
Hi bros,
I've been developing programs using SeleniumBase, and it works really well against websites with strong bot detectors. However, I have a minor issue related to text formatting. I've been trying to use only the native functions of CDP mode for a site I am working on, and whenever I try to input long text into an input field, the line breaks('\n') and or spacing are stripped out.
I also tried using pyperclip, but didn't worked well with cdp mode.
Example Result:
from seleniumbase import SB
import pdb
with SB(uc=True) as bot:
text = """
✅ SeleniumBase README
🏰 List of Features
📚 Running Example Tests
🎛️ Command Line Options
✅ SeleniumBase README
🏰 List of Features
📚 Running Example Tests
Hello\nWorld
"""
pdb.set_trace()
bot.activate_cdp_mode('https://google.com')
bot.set_text('[aria-label="Search"]', text)