Exemplo n.º 1
0
def get_s2l():
    global s2l_handle
    if not s2l_handle:
        try:
            s2l_handle = BuiltIn().get_library_instance("Selenium2Library")
        except RuntimeError:
            s2l_handle = Selenium2Library()
    return s2l_handle
Exemplo n.º 2
0
 def test_underscore_run_on_failure(self):
     when(RunOnFailureKeywords).run_on_failure().thenReturn(True)
     s2l = Selenium2Library()
     s2l._run_on_failure()
     verify(RunOnFailureKeywords, times=1).run_on_failure()