def test_set_selenium_implicit_wait(self):
        sl = SeleniumLibrary()
        sl.set_selenium_implicit_wait('5.0')
        self.assertEqual(sl.implicit_wait, 5.0)

        sl.set_selenium_implicit_wait('1 min')
        self.assertEqual(sl.implicit_wait, 60.0)
Пример #2
0
def test_set_selenium_implicit_wait():
    sl = SeleniumLibrary()
    sl.set_selenium_implicit_wait("5.0")
    assert sl.implicit_wait == 5.0

    sl.set_selenium_implicit_wait("1 min")
    assert sl.implicit_wait == 60.0
Пример #3
0
    def test_set_selenium_implicit_wait(self):
        sl = SeleniumLibrary()
        sl.set_selenium_implicit_wait('5.0')
        self.assertEqual(sl.implicit_wait, 5.0)

        sl.set_selenium_implicit_wait('1 min')
        self.assertEqual(sl.implicit_wait, 60.0)
def test_set_selenium_implicit_wait():
    sl = SeleniumLibrary()
    sl.set_selenium_implicit_wait('5.0')
    assert sl.implicit_wait == 5.0

    sl.set_selenium_implicit_wait('1 min')
    assert sl.implicit_wait == 60.0
    def test_selenium_implicit_wait_get(self):
        sl = SeleniumLibrary(implicit_wait='3')
        self.assertEqual(sl.get_selenium_implicit_wait(), '3 seconds')

        org_value = sl.set_selenium_implicit_wait('1 min')
        self.assertEqual(sl.get_selenium_implicit_wait(), '1 minute')
        self.assertEqual(org_value, '3 seconds')
Пример #6
0
    def test_selenium_implicit_wait_get(self):
        sl = SeleniumLibrary(implicit_wait='3')
        self.assertEqual(sl.get_selenium_implicit_wait(), '3 seconds')

        org_value = sl.set_selenium_implicit_wait('1 min')
        self.assertEqual(sl.get_selenium_implicit_wait(), '1 minute')
        self.assertEqual(org_value, '3 seconds')
Пример #7
0
def test_selenium_implicit_wait_get():
    sl = SeleniumLibrary(implicit_wait="3")
    assert sl.get_selenium_implicit_wait() == "3 seconds"

    org_value = sl.set_selenium_implicit_wait("1 min")
    assert sl.get_selenium_implicit_wait() == "1 minute"
    assert org_value == "3 seconds"
def test_selenium_implicit_wait_get():
    sl = SeleniumLibrary(implicit_wait='3')
    assert sl.get_selenium_implicit_wait() == '3 seconds'

    org_value = sl.set_selenium_implicit_wait('1 min')
    assert sl.get_selenium_implicit_wait() == '1 minute'
    assert org_value == '3 seconds'
 def test_selenium_implicit_wait_error(self):
     with self.assertRaises(ValueError):
         SeleniumLibrary(implicit_wait='False')
     sl = SeleniumLibrary(implicit_wait='3')
     with self.assertRaises(ValueError):
         sl.set_selenium_implicit_wait('1 vuosi')
Пример #10
0
 def test_selenium_implicit_wait_error(self):
     with self.assertRaises(ValueError):
         SeleniumLibrary(implicit_wait='False')
     sl = SeleniumLibrary(implicit_wait='3')
     with self.assertRaises(ValueError):
         sl.set_selenium_implicit_wait('1 vuosi')
Пример #11
0
def test_selenium_implicit_wait_error():
    with pytest.raises(ValueError):
        SeleniumLibrary(implicit_wait="False")
    sl = SeleniumLibrary(implicit_wait="3")
    with pytest.raises(ValueError):
        sl.set_selenium_implicit_wait("1 vuosi")
def test_selenium_implicit_wait_error():
    with pytest.raises(ValueError):
        SeleniumLibrary(implicit_wait='False')
    sl = SeleniumLibrary(implicit_wait='3')
    with pytest.raises(ValueError):
        sl.set_selenium_implicit_wait('1 vuosi')