def test_Downvote(self, Setup): tp = ThreadsPage() threadlist = tp.GetThreads(Setup) for t in threadlist: vc = t.GetVoteCount(Setup) t.GetDownvoteButton(Setup).click() assert t.GetVoteCount(Setup) == str(vc - 1)
def test_ThreadsDisplayed(self, Setup): tp = ThreadsPage() threadlist = tp.GetThreads(Setup) assert len(threadlist) != 0