Can't find element in video preroll object

Try this in the console:

document.querySelector("#my-video_html5_api").nextElementSibling.nextElementSibling.click()

Make certain the page is open and the video control is ready.

You talking about Katalon script console?

What imports I need to type before using that?

No, just like my previous answer, do it in DevTools’ console.

document.querySelector("#my-video_html5_api").nextElementSibling.nextElementSibling.click()

Answer: undefined

Based on your supplied screenshots, undefined is not possible.

If that doesn’t work for you, then it brings into question everything you’ve said from the start.

Two very experienced programmers and test engineers have tried to make sense of your problem and posts. This one (me) is failing.

Please learn to use the tools and learn to use them effectively.

Thanks for answers!
Finally I’m used robot like that:

WebUI.click(findTestObject(‘1. TestDomainPage/2. Video/2.4 vast_playbutton’))
WebDriver driver= DriverFactory.getWebDriver()
Robot robot = new Robot()
robot.delay(1000)
robot.keyPress(KeyEvent.VK_TAB)
robot.keyRelease(KeyEvent.VK_TAB)
robot.keyPress(KeyEvent.VK_ENTER)
robot.keyRelease(KeyEvent.VK_ENTER)
WebUI.switchToWindowIndex(1)

1 Like