MachinePublishers / jBrowserDriver

A programmable, embeddable web browser driver compatible with the Selenium WebDriver spec -- headless, WebKit-based, pure Java
Other
809 stars 143 forks source link

Cannot send []{} characters with sendKeys function in headless mode #365

Open balazs-zsoldos opened 4 years ago

balazs-zsoldos commented 4 years ago

If I want to call webElement.sendKeys("{"); on an input field, nothing is written into the field.

balazs-zsoldos commented 4 years ago

Solved this issue by removing the special characters from com.machinepublishers.jbrowserdriver.Robot.textMap. By removing the characters, the non-headless issues are gone, too (like #139). I guess this map has an important role, but it would be nice if we could configure its content before starting the browser.