Ejemplo 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. "
Ejemplo 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"
Ejemplo 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. "
Ejemplo 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"
Ejemplo 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"
Ejemplo 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"
Ejemplo n.º 7
0
def test_watchmovie(browser):
    global listdet
    listdet = moviedetails(browser)
    assert listdet.verify_watchmovie() == True, "movie header image not found"
Ejemplo n.º 8
0
def test_photoslidearrow(browser):
    global listdet
    listdet = moviedetails(browser)
    assert listdet.verify_photoslidearrow() == True, "photo not changed"
Ejemplo 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"
Ejemplo 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"
Ejemplo 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"