AutoGeneral / IridiumApplicationTesting

A&G Web Application Testing Suite
https://www.gitbook.com/book/autogeneral/iridiumapplicationtesting-gettingstartedguide/details
MIT License
20 stars 13 forks source link

Enhancement - Add steps to adjust style percentage #63

Closed dehanw closed 7 years ago

dehanw commented 7 years ago

Need a new step which could adjust html style percentage for an element. Please refer to the screenshot. Thanks a lot.

For example: Before: <a class="ui-slider-handle ui-state-default ui-corner-all" href="#" style="left: 0%;"></a> After: <a class="ui-slider-handle ui-state-default ui-corner-all" href="#" style="left: 45%;"></a>

style_percentage

mcasperson commented 7 years ago

See https://github.com/mcasperson/IridiumApplicationTesting/commit/aafebe53bb556b2e592661bd34a0d87095eba41f#diff-798da170f510d918462f993a448147fbR53

A new step has been added:

And I modify the element found by "eventButton" by setting the attribute "data-test" to "New Value"

dehanw commented 7 years ago

This step works as the expectation. Thanks a lot. So, close the enhancement issue.