Skip to content

Commit dd762ea

Browse files
committed
refactor: move "Link Should Point To" to selenium.utils.robot
No functional changes.
1 parent e90e297 commit dd762ea

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/test/robotframework/selenium.utils.robot

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,9 @@ Select Country
3838
... *[contains(@class, "option") and text()="${value}"]
3939
Wait Until Page Contains Element xpath=${countryOption}
4040
Click Element xpath=${countryOption}
41+
42+
Link Should Point To
43+
[Documentation] Verify that "href" attribute of the element refers to a link
44+
[Arguments] ${locator} ${expectedUrl}
45+
${url}= Get Element Attribute ${locator}@href
46+
Should Be Equal ${expectedUrl} ${url}

src/test/robotframework/series/import/request-logic.robot

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,3 @@ Before Test Suite
139139

140140
Before Test
141141
Go To ${SITE_URL}/series/import/request
142-
143-
Link Should Point To
144-
[Documentation] Verify that "href" attribute of the element refers to a link
145-
[Arguments] ${locator} ${expectedUrl}
146-
${url}= Get Element Attribute ${locator}@href
147-
Should Be Equal ${expectedUrl} ${url}

0 commit comments

Comments
 (0)