0
I’m trying to use Python / Selenium / Webdriver to automatically fill in an entry field on my Chrome page. However, I am unable to use the "send_keys" command to fill the til character (~).
Here is my code:
import os
import sys
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import Select
browser = webdriver.Chrome(executable_path=r"chromedriver.exe")
browser.get("https://mywebpageaddress")
browser.find_element_by_id("username").send_keys('charles~18')
The page is filled in as "charles18" instead of "Charles~18".
Note: Manually you can write "Charles~18" in this field via the browser.
Anyone know how to handle it? Thank you!