Skip to content

Commit 2914d91

Browse files
committed
Add test for non-existent CSS property as requested by reviewer
1 parent 4a8d2b8 commit 2914d91

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

atest/acceptance/keywords/elements.robot

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ Cover Elements should throw exception when locator is invalid
220220
Run Keyword And Expect Error No element with locator '//img?@src="inexistent"?' found.
221221
... Cover Element //img[@src="inexistent"]
222222

223-
Get CSS Property Value
223+
Get CSS Property Value Returns Correct Values For Common Properties
224224
[Setup] Go To Page "cssproperties.html"
225225
${display}= Get CSS Property Value id:styled-div display
226226
Should Be Equal ${display} block
@@ -247,3 +247,8 @@ Get CSS Property Value Using WebElement
247247
${element}= Get WebElement id:styled-div
248248
${display}= Get CSS Property Value ${element} display
249249
Should Be Equal ${display} block
250+
251+
Get CSS Property Value With Non Existing Property
252+
[Setup] Go To Page "cssproperties.html"
253+
${value}= Get CSS Property Value id:styled-div non-existent-property
254+
Should Be Empty ${value}

0 commit comments

Comments
 (0)