Esempio n. 1
0
def test_watchtrailer(browser):
    global listdet
    listdet = moviedetails(browser)
    listdet.verify_watchtrailer()
    assert listdet.verify_trailerplay() == "bmpui-ui-hugeplaybacktogglebutton bmpui-on", "After clicking on trailer " \
                                                                                         "button trailer is not " \
                                                                                         "getting played. "
Esempio n. 2
0
def test_castdetails(browser):
    global listdet
    listdet = moviedetails(browser)
    assert listdet.verify_castdetails() == True, "Cast Details not found"
    assert listdet.verify_directorname() == True, "Director name not found"
    assert listdet.verify_producername() == True, "Producer name not found"
    assert listdet.verify_execproducername(
    ) == True, "Exec. Producer name not found"
Esempio n. 3
0
def test_trailerPlay(browser):
    trailer = moviedetails(browser)
    trailer.refresh()
    time.sleep(30)
    trailer.click_trailer_button()
    time.sleep(15)
    assert trailer.verify_trailerplay() == "bmpui-ui-hugeplaybacktogglebutton bmpui-on", "After clicking on trailer " \
                                                                                         "button trailer is not " \
                                                                                         "getting played. "
Esempio n. 4
0
def test_movieheaderdetails(browser):
    global listdet
    listdet = moviedetails(browser)
    assert listdet.verify_movieheaderimage(
    ) == True, "movie header image not found"
    assert listdet.verify_movielogo() == True, "movie title logo not found"
    assert listdet.verify_watchmoviebutton(
    ) == True, "watch movie button not found"
    assert listdet.verify_watchtrailerbutton(
    ) == True, "watch trailer button not found"
    assert listdet.verify_addtolistbutton(
    ) == True, "Add to List button not found"
Esempio n. 5
0
def test_moviedetails(browser):
    global listdet
    listdet = moviedetails(browser)
    listdet.verify_moviedetails()
    assert listdet.verify_movieheader(
    ) == True, "movie header section not found"
    assert listdet.verify_movietrailer(
    ) == True, "movie trailer section not found"
    assert listdet.verify_moviephotos(
    ) == True, "movie photos section not found"
    assert listdet.verify_moviecastprod(
    ) == True, "movie cast prod section not found"
Esempio n. 6
0
def test_synopsiselement(browser):
    global listdet
    listdet = moviedetails(browser)
    listdet.verify_moviedetails()
    assert listdet.verify_synopsisimage() == True, "Synopsis image not found"
    assert listdet.verify_synopsisdesc() == True, "Synopsis desc not found"
    assert listdet.verify_synopsisrate() == True, "Synopsis rate not found"
    assert listdet.verify_synopsisgenre() == True, "Synopsis genre not found"
    assert listdet.verify_synopsisrelease(
    ) == True, "Synopsis release date not found"
    assert listdet.verify_synopsisdirector(
    ) == True, "Synopsis director date not found"
    assert listdet.verify_synopsiscast() == True, "Synopsis cast not found"
    assert listdet.verify_synopsiscopyright(
    ) == True, "Synopsis copy right not found"
Esempio n. 7
0
def test_watchmovie(browser):
    global listdet
    listdet = moviedetails(browser)
    assert listdet.verify_watchmovie() == True, "movie header image not found"
Esempio n. 8
0
def test_photoslidearrow(browser):
    global listdet
    listdet = moviedetails(browser)
    assert listdet.verify_photoslidearrow() == True, "photo not changed"
Esempio n. 9
0
def test_photoelements(browser):
    global listdet
    listdet = moviedetails(browser)
    assert listdet.verify_phototitle() == True, "Trailer title not found"
    assert listdet.verify_photoslidearrow() == True, "slide arrow not found"
    assert listdet.verify_photoviewport() == True, "view port not found"
Esempio n. 10
0
def test_trailerelements(browser):
    global listdet
    listdet = moviedetails(browser)
    assert listdet.verify_trailerelements() == True, "Trailer title not found"
    assert listdet.verify_trailerplayer() == True, "Player not found"
Esempio n. 11
0
def test_addedmovieinlist(browser):
    global listdet
    listdet = moviedetails(browser)
    assert listdet.verify_addedmovieinlist(
    ) == True, "added movie is not found in the list"