コード例 #1
0
 def selectRATTag(self):
     # RAT tag
     return BasicButton(
         self.label + " > selectRATTag", lambda: self.browser.
         find_element_by_xpath("(//option[@value='12'])[3]"))
コード例 #2
0
 def setSelectionButton(self):
     return BasicButton(
         self.label + " > setSelectionButton",
         lambda: self.browser.find_element_by_id("selectCasesFilterApply"))
コード例 #3
0
 def typeButton(self):
     return BasicButton(
         self.label + " > typeButton",
         lambda: self.browser.find_element_by_link_text("Type"))
コード例 #4
0
 def selectAcceptance(self):
     return BasicButton(
         self.label + " > selectAcceptance", lambda: self.browser.
         find_element_by_xpath("(//option[@value='1'])[12]"))
コード例 #5
0
 def selectAddTestSuiteOkButton(self):
     return BasicButton(
         self.label + " > selectAddTestSuiteOkButton",
         lambda: self.browser.find_element_by_id("chooseSuiteDialogSubmit"))
コード例 #6
0
 def testPurposeButton(self):
     return BasicButton(
         self.label + " > testPurposeButton",
         lambda: self.browser.find_element_by_link_text("Test Purpose"))
コード例 #7
0
 def selectiOSPlatforms(self):
     return BasicButton(
         self.label + " > selectiOSPlatforms", lambda: self.browser.
         find_element_by_xpath("(//option[@value='4'])[4]"))
コード例 #8
0
 def testRunAndTestResultLink(self):
     return BasicButton( self.label + " > testRunAndTestResultLink", lambda :"navigation-runs" )
コード例 #9
0
 def acceptTestCasePaln(self):
     return BasicButton(self.label + " > acceptTestCasePaln",
                        lambda: self.browser.find_element_by_id("accept"))
コード例 #10
0
 def platformsButton(self):
     return BasicButton(
         self.label + " > platformsButton",
         lambda: self.browser.find_element_by_link_text("Platforms"))
コード例 #11
0
 def editConfirm(self):
     return BasicButton(
         self.label + " > editConfirm", lambda: self.browser.
         find_element_by_xpath("//*[@id='editNameForm']/div[2]/button"))
コード例 #12
0
 def renamePlanTitle(self, number):
     return BasicButton(
         self.label + " > renamePlanTitle", lambda: self.browser.
         find_element_by_xpath("//*[@id='entries']/div[" + number +
                               "]/div[1]/div/div[2]/div[1]/a/div"))
コード例 #13
0
 def testPlanSelectCasesButton3(self):
     return BasicButton(
         self.label + " > testPlanSelectCasesButton3", lambda: self.browser.
         find_element_by_xpath("(//a[contains(text(),'select cases')])[5]"))
コード例 #14
0
 def selectCasesSubmit(self):
     return BasicButton(
         self.label + " > selectCasesSubmit",
         lambda: self.browser.find_element_by_id("selectCasesSubmit"))
コード例 #15
0
 def priorityButton(self):
     return BasicButton(
         self.label + " > priorityButton",
         lambda: self.browser.find_element_by_link_text("Priority"))
コード例 #16
0
 def licenseLabelButton(self):
     return BasicButton(
         self.label + " > licenseLabelButton",
         lambda: self.browser.find_element_by_link_text("License Label"))
コード例 #17
0
 def selectCriticalPriority(self):
     return BasicButton(
         self.label + " > selectCriticalPriority", lambda: self.browser.
         find_element_by_xpath("(//option[@value='5'])[5]"))
コード例 #18
0
 def addTestPlan( self ):
     return BasicButton( self.label + " > addTestPlan", lambda :self.browser.find_element_by_xpath( "//a[@id='navigation-plans-add']/span" ) )
コード例 #19
0
 def addTestSuiteButton(self):
     return BasicButton(
         self.label + " > addTestSuiteButton",
         lambda: self.browser.find_element_by_id("sidebar-plans-addsuite"))