def test_view_addon_source(self, mozwebqa): #This test is to check viewing the source of an addon while not logged in homepage_obj = HomePage(mozwebqa) searchpage_obj = SearchPage(mozwebqa) addoneditor_obj = AddonEditorPage(mozwebqa) #Go to search page and click view source on the first addon listed homepage_obj.go_to_home_page() homepage_obj.header.click_search() searchpage_obj.addon(1).click() Assert.true(addoneditor_obj.tab(1).selected) Assert.not_none(addoneditor_obj.tab(1).content)