def test_open_document_in_spl(self): docName = "midlit10_doc_spleriereading.pdf" spl = SelfPacedLessons(self.driver, self.wait, self.resourceId) spl.clickPage(9) spl.clickViewButton() o_s = sys.platform if("win" in o_s): self.assertEqual(self.driver.title, docName + " (application/pdf Object)", "Pdf document not opened") elif("linux" in o_s): self.assertFileIsDownloaded(docName)
def test_open_video_in_spl(self): spl = SelfPacedLessons(self.driver, self.wait, self.resourceId) spl.clickPage(7) new_page = spl.clickViewButton() self.assertTrue(new_page.elementExistsById("mediaplayer"), "Pop-up contains no video")