Skip to content

Commit 192c941

Browse files
author
Cleverson Sampaio
committed
feat(findelements): added element highlight support in waitForElementVisible method
1 parent cbebc1c commit 192c941

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/SeleniumLibraryExtends/FindElements/findElements.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from robot.libraries.BuiltIn import BuiltIn
77
from robot.api.deco import keyword
88
from SeleniumLibraryExtends.report import Report
9+
from SeleniumLibraryExtends.highlight import Highlight
910

1011
class FindElements:
1112
def __init__(self):
@@ -16,6 +17,7 @@ def waitForElementVisible(self, locator: str):
1617
self.driver = BuiltIn().get_library_instance("SeleniumLibrary")
1718
try:
1819
self.driver.wait_until_element_is_visible(locator)
20+
Highlight.init(locator)
1921
except Exception as e:
2022
Report().fail(e)
2123

0 commit comments

Comments
 (0)