@@ -218,4 +218,37 @@ Cover Element can cover just one element
218218
219219Cover Elements should throw exception when locator is invalid
220220 Run Keyword And Expect Error No element with locator '//img?@src="inexistent"?' found.
221- ... Cover Element //img[@src="inexistent"]
221+ ... Cover Element //img[@src="inexistent"]
222+
223+ Get CSS Property Value Returns Correct Values For Common Properties
224+ [Setup] Go To Page "cssproperties.html"
225+ ${display } = Get CSS Property Value id:styled-div display
226+ Should Be Equal ${display } block
227+ ${font_size } = Get CSS Property Value id:styled-div font-size
228+ Should Be Equal ${font_size } 16px
229+ ${margin_top } = Get CSS Property Value id:styled-div margin-top
230+ Should Be Equal ${margin_top } 10px
231+ ${text_align } = Get CSS Property Value id:styled-div text-align
232+ Should Be Equal ${text_align } center
233+
234+ Get CSS Property Value With Missing Element
235+ [Setup] Go To Page "cssproperties.html"
236+ Run Keyword And Expect Error
237+ ... Element with locator 'id:non-existent' not found.
238+ ... Get CSS Property Value id:non-existent color
239+
240+ Get CSS Property Value Returns Background Color
241+ [Setup] Go To Page "cssproperties.html"
242+ ${color } = Get CSS Property Value id:styled-div background-color
243+ Should Match Regexp ${color } ^rgba?\(.+\)$
244+
245+ Get CSS Property Value Using WebElement
246+ [Setup] Go To Page "cssproperties.html"
247+ ${element } = Get WebElement id:styled-div
248+ ${display } = Get CSS Property Value ${element } display
249+ 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