I have a set of automation scripts in place that handle the downloading and saving of files from a server. These scripts also involve moving the downloaded files from the downloads folder to a user-specific location. When this process is complete, the color of the "SAVE" button changes from blue to red. I am looking for a way to test this behavior using Selenium with Java. Currently, I am utilizing WebdriverBackedSelenium for scripting.
//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:");
}