Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
def Setup():

    driver = BrowserFunctions.BrowserLoad()
    tp = ThreadsPage()
    tp.Redirect(driver)

    yield driver
    driver.close()
Exemplo n.º 3
0
 def test_Refresh(self, Setup):
     tp = ThreadsPage()
     Setup.refresh()
     assert tp.IsOn(Setup)
Exemplo n.º 4
0
 def test_ThreadsDisplayed(self, Setup):
     tp = ThreadsPage()
     threadlist = tp.GetThreads(Setup)
     assert len(threadlist) != 0