fix typos
This commit is contained in:
@@ -33,7 +33,7 @@ class Element:
|
|||||||
https://docs.python.org/3/howto/descriptor.html
|
https://docs.python.org/3/howto/descriptor.html
|
||||||
:param instance: instance of owner
|
:param instance: instance of owner
|
||||||
:param owner: type of owner
|
:param owner: type of owner
|
||||||
:return: self or WebElement instance
|
:return: self or CustomWebElement instance
|
||||||
"""
|
"""
|
||||||
if isinstance(instance, Element):
|
if isinstance(instance, Element):
|
||||||
return self
|
return self
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ class TestCase(common.TestCase):
|
|||||||
y = location["y"]
|
y = location["y"]
|
||||||
width = location["x"] + size['width']
|
width = location["x"] + size['width']
|
||||||
height = location["y"] + size['height']
|
height = location["y"] + size['height']
|
||||||
return x * 2, y * 2, width * 2, height * 2
|
return x, y, width, height
|
||||||
|
|
||||||
def _get_element_screenshot(self, by, locator, action, finalize) \
|
def _get_element_screenshot(self, by, locator, action, finalize) \
|
||||||
-> Tuple[Image.Image, Tuple[int, int, int, int]]:
|
-> Tuple[Image.Image, Tuple[int, int, int, int]]:
|
||||||
|
|||||||
Reference in New Issue
Block a user