Hey there, I'm facing an issue in my Java code while trying to use the sendKeys command with Selenium libraries.
The text field I'm working with is only visible if you scroll down to view it on the screen.
var element = driver.FindElement(By.Xpath("…"));
element.SendKeys("blah");
When the text field is visible, the message "blah
" is successfully sent to it without any issues.
However, if the text field is not visible because I haven't scrolled down, the message "blah
" doesn't get sent.
Any ideas on how to solve this problem? I want to be able to send "blah" to the text field even when it's not visible on the screen. Any suggestions on how to achieve this?