java - Verify the change of background color of the Textfield -


how can verify if textfield changed background color after action commited or form submitted?

thank you!

i can't provide more if don't provide code. here's demo can have look. basically, can css values webelement.getcssvalue method.

http://jsfiddle.net/ruuys/

<input id="txttest" /> <button id="submit" onclick="document.getelementbyid('txttest').style.background = 'orange';">submit</button> 
webelement btnsubmit = drvier.findelement(by.id("submit")); btnsubmit.click();  webelement txttest = drvier.findelement(by.id("txttest")); string color = txttest.getcssvalue("background-color"); // color should "orange" in case 

Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -