I have a problem with locating element inside video preroll
Testcase:
WebUI.navigateToUrl(‘videopage’)
WebUI.verifyElementClickable(findTestObject(‘playbutton’))
WebUI.click(findTestObject(‘playbutton’))
WebUI.click(findTestObject(‘preroll_advertisement’)) → on this step test failed
VideoPlayer vast with class inactive/active user action
I try with clickAndHold, but didnt working, driver cant do a click,
because not find //a[@class='vast-blocker]
What I need to do to find preroll, click on it and use another buttons like skip etc.?
Some HTML of it:
Unable to find the element located by ‘By.xpath: //a[@class=‘vast-blocker’]’. Please recheck the objects properties to make sure the desired element is located.
The video has been deleted. Can you open Katalon Recorder, go to the page and click on the element then press Verify And Highlight and share the result?