Skip to content

Commit c6e28bd

Browse files
committed
Atest and message fixes
1 parent 3ff6bd0 commit c6e28bd

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

atest/acceptance/keywords/elements.robot

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Get Element Attribute
6262

6363
Get Element Attribute Value Should Be Should Be Succesfull
6464
Element Attribute Value Should Be link=Absolute external link href http://www.google.com/
65-
Element Attribute Value Should Be link=Absolute external link nothere None
65+
Element Attribute Value Should Be link=Absolute external link nothere ${None}
6666

6767

6868
Get Element Attribute And Element Attribute Value Should Be Should have same results
@@ -77,13 +77,13 @@ Get Element Attribute Value Should Be Should Be Succesfull error and error messa
7777
... Test Fail Custom Message
7878
... Element Attribute Value Should Be id=image_id href http://non_existing.com message=Test Fail Custom Message
7979
Run Keyword And Expect Error
80-
... Element 'id=image_id' attribute should have value 'http://non_existing.com (str)' but its value was 'None' (nonetype).
80+
... Element 'id=image_id' attribute should have value 'http://non_existing.com' (str) but its value was 'None' (nonetype).
8181
... Element Attribute Value Should Be id=image_id href http://non_existing.com
8282
Run Keyword And Expect Error
8383
... Element with locator 'id=non_existing' not found.
8484
... Element Attribute Value Should Be id=non_existing href http://non_existing.com
8585
Run Keyword And Expect Error
86-
... http://localhost:7000/html/index.html'.' but got 'Element 'link=Target opens in new window' attribute should have value 'http://localhost:7000/html/indéx.html (str)' but its value was 'http://localhost:7000/html/index.html' (str).
86+
... Element 'link=Target opens in new window' attribute should have value 'http://localhost:7000/html/indéx.html' (str) but its value was 'http://localhost:7000/html/index.html' (str).
8787
... Element Attribute Value Should Be link=Target opens in new window href http://localhost:7000/html/indéx.html
8888

8989
Get Horizontal Position

src/SeleniumLibrary/keywords/element.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,8 +432,8 @@ def element_attribute_value_should_be(
432432
if current_expected != expected:
433433
if message is None:
434434
message = (
435-
f"Element '{locator}' attribute should have value '{expected} "
436-
f"({type_converter(expected)})' but its value was '{current_expected}' "
435+
f"Element '{locator}' attribute should have value '{expected}' "
436+
f"({type_converter(expected)}) but its value was '{current_expected}' "
437437
f"({type_converter(current_expected)})."
438438
)
439439
raise AssertionError(message)

0 commit comments

Comments
 (0)