Пример #1
0
 def demo_title_should_be(self,expected):
     # a demo by YT for implemnting the same function as 'Title Should Be'
     seleniumlib = BuiltIn().get_library_instance('Selenium2Library')
     title = seleniumlib.get_title()
     if not title.startswith(expected):
         raise AssertionError("Title '%s' did not start with '%s'"
                              % (title, expected))
def title_should_start_with(expected):
    selenium_lib = BuiltIn().get_library_instance('SeleniumLibrary')
    title = selenium_lib.get_title()
    if not title.startswith(expected):
        raise AssertionError("Title '%s' did not start with '%s'"
                             % (title, expected))