Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Selenium test to verify css-attribute in style attribute

I want to write a selenium IDE test that verifies the value of the bottom attribute in "style" below. How do i write a test for this assuming:

Xpath to the element is: xpath=/html/body/div/div[3]/div[2]/div/div/div[3]/div/a I want to use verifyAttribute or similar.

I am using selenium IDE: Command, Target, Value...

<a href="#" class="ui-slider-handle ui-state-default ui-corner-all" style="bottom: 75%; background-color: transparent;"></a>
like image 470
David Karlsson Avatar asked Mar 01 '26 11:03

David Karlsson


1 Answers

I believe something like this would work:

COMMAND         | TARGET                 |  VALUE
verifyAttribute | css=input + input@id   |  id
like image 95
Mark Rowlands Avatar answered Mar 03 '26 02:03

Mark Rowlands