giorgiosironi / phpunit-selenium

Selenium RC integration for PHPUnit
http://www.phpunit.de/
Other
602 stars 271 forks source link

Get all attributes or the html of an element? #389

Closed samuraiseoul closed 7 years ago

samuraiseoul commented 7 years ago

I need to see if some attributes changed since I can't use the equals function from the Element class to assert that an element has changed at all, besides just that the element is the same one that was on the page. Is there anyway to do this, or get the html, or anything?

paulbriton commented 7 years ago

This should do the trick : $element->attribute('outerHTML');

paulbriton commented 7 years ago

Issue can be closed as well.