This site is in read only mode. Please continue to browse, but replying, likes, and other actions are disabled for now.
6 / 6
Feb 2019

Hi,

I'm trying to automate a video player test in an Android app. My scenario is after video is starting to play, I click on the video thumbnail again and playPause button and Next button is seen for few seconds on the screen. I want to click or tap on them, but getting throws NoSuchElementFound exception. However, when I look at the page source, I see the elements I want to test in source page. Any idea how to test those buttons and why those elements not found while testing?

Thanks for help.

  • created

    Dec '16
  • last reply

    Feb '19
  • 5

    replies

  • 1.1k

    views

  • 4

    users

  • 4

    links

Hey thanks for your answer. I've tried implicit wait then Appium found the element. However, my problem is now, after finding element, I tapped again somewhere to display buttons and then I want to tap on it to turn pause button to play, but when I give tap action, Appium again returns NoSuchElementException. Briefly, Playpause button is seen for few seconds. What I want , throughout these buttons are visible, I want to take some actions on them.

Thanks for help.

My guess is that Appium is not able to find the video playback controls in the amount of time they are visible given the existing locators.

You might have to resort to tapping or pressing on specific coordinates where you expect the button to appear.

2 years later