Ejemplo n.º 1
0
 def verifyMessage(self, message):
     expected_format = 'Hello {} How are you today'.format(message)
     assertion.assertEquals('The message is not equal:', expected_format,
                            page.getMessageText().getText())
     return self
Ejemplo n.º 2
0
 def selectAlertWithOkOption(self):
     page.getOptionAlertOk().click()
     return self
Ejemplo n.º 3
0
 def verifyButtonAlertTextbox(self):
     assertion.assertTrue(
         'Unable to find the button to display an alert with Textbox',
         page.getButtonAlertTextbox().isDisplayed())
     return self
Ejemplo n.º 4
0
 def openDialogTextbox(self):
     self.verifyButtonAlertTextbox()
     page.getButtonAlertTextbox().click()
     return self
Ejemplo n.º 5
0
 def openDialogOKCancel(self):
     self.verifyButtonAlertOKCancel()
     page.getButtonAlertOKCancel().click()
     return self
Ejemplo n.º 6
0
 def verifyButtonAlertOKCancel(self):
     assertion.assertTrue(
         'Unable to find the button to display an alert box with OK and Cancel options',
         page.getButtonAlertOKCancel().isDisplayed())
     return self
Ejemplo n.º 7
0
 def verifyOkAndCancelOption(self):
     assertion.assertTrue('Unable to find the OK and Cancel option',
                          page.getButtonAlertOKCancel().isDisplayed())
     return self
Ejemplo n.º 8
0
 def selectAlertWithTextboxOption(self):
     page.getOptionAlertTextbox().click()
     return self
Ejemplo n.º 9
0
 def selectAlertWithOkAndCancelOption(self):
     page.getOptionAlertOkCancel().click()
     return self