Unable to sendKeys into webpage without 'findtestobject'

import org.openqa.selenium.Keys as Keys

3.WebUI.navigateToUrl(GlobalVariable.url_base + ‘helpmeplease’)
5.WebUI.sendKeys(null, Keys.chord(Keys.TAB))
6.WebUI.sendKeys(null, Keys.chord(Keys.ENTER))

Error on 5 step: Unable to send keys ‘’ to object

I just want press (TAB + ENTER) without some fields, findingtestobjects etc.
Last time I’am using robot.KeyPress but ChromeHeadless didnt understand that new tab is opened after TAB+ENTER (but link from video was opened), and driver Cannot find window with index: ‘1’

What I need to do? I’m trying 5 step like a 3 weeks in a row with many methods, but nothing works.


  1. Using robot works in Chrome (TestCase Passed)
  2. Using robot doesnt work in ChromeHeadless (TestCase FAILED)
  3. SendKeys doesnt work in both browsers (TestCase FAILED)