Пример #1
0
    def test_set_WhenValidTextIsSet_ThenDriverSetsProperText(self):
        # arrange
        stub_driver = FakeDriver()

        element = Element(stub_driver)

        # act
        element.set('valid text')

        # assert
        assert_that(stub_driver.stub_set, is_('valid text'))
Пример #2
0
 def find(self, locator):
     element = Element(self)
     element.id = locator
     return element