以下のコードを使用すると、Google 検索テキスト ボックスではなくブラウザ URL でキーが送信されます。大文字のキーボード イベントを使用して、Google 検索のテキスト フィールドにテキストを入力したいと考えています。
driver.get(https://www.google.co.in/);
Actions builder = new Actions(driver);
Action enterText = builder.click(driver.findElement(By.
cssSelector("input[type=text]"))).
keyDown(Keys.SHIFT).
sendKeys("my gmail").
keyUp(Keys.SHIFT).
build();
enterText.perform();