browser.clickAndWait(getProperty("SELL_NEXT"));
}
protected void submitSell2Page(int category, int subcategory) {
assertTrue("Navigation failure, sell2 page expected", browser.getLocation().contains(getProperty("SELL_2_URL")));
new Wait()
{
@Override
public boolean until()
{
return browser.isElementPresent(getProperty("SELL_CATEGORY_SELECT_SECOND_OPTION"));
}
};
/*this sleeping is necessary because although the previous waiting ensures the 14. option present in select component in
java code, the web page on its own is not ready yet*/
try
{
Thread.sleep(listWaitTime);
}
catch (InterruptedException e)
{
}
browser.select(getProperty("SELL_CATEGORY_SELECT"), "index=" + category);
if (subcategory != 0)
{
new Wait()
{
@Override
public boolean until()
{
return browser.isElementPresent(getProperty("SELL_SUBCATEGORY_SELECT"));