I am running some automation scripts which will save the files downloaded from the server and copy my files from downloads folder to a user specific folder and after saving, the "SAVE" button will turn to color:RED (previously,Blue). Is there a way to test it using selenium +Java.? I currently use WebdriverBackedSelenium for developing my scripts.
//Current Sample Code Snippet:
if(selenium.isElementPresent("css=Submit_Button"))
{
selenium.click("css=submit_Button");
}
//Expected Code Snippet:
if(selenium.isElementPresent("css=Submit_Button"))
{
if( /* something like colorof("css=Submit_Button")=="RED"*/ )
selenium.click("css=submit_Button");
else
System.out.print("\n Already Processed:");
}