I have a test case with video.

Test Case scenario:

There I want to check whether the link in the website and when we clicked that link played video link are same.

[![Highlighted is linked to video][1]][1]

This is the video that played when clicking the link above

I try something like this but I not worked.

JavascriptExecutor excute = (JavascriptExecutor) driver ;

        String asset=driver.findElement(By.xpath("//div[@ng-repeat='asset in arParameters.assets']/a")).getText();
        driver.findElement(By.xpath("//div[@ng-repeat='asset in arParameters.assets']/a")).click();
        String link =driver.findElement(By.xpath("//video[@name='media']/source")).getAttribute("src");

        try {
        } catch (Error e) {
            verificationErrors.append(tcID+": "+e.toString());
  • What did happen? Did it give any error? If no error is returned, check those two url.
    – Shahid
    Jun 26, 2018 at 7:40
  • @shahid just video is play.next line not worked.if pause the video.it throws time out error.
    – Aravin
    Jun 26, 2018 at 8:22


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.