This is Java file on 6/30.

package streamboxtest01;

import static junit.framework.Assert.assertEquals;
import static junit.framework.Assert.assertTrue;






import java.util.concurrent.TimeUnit;

import org.openqa.jetty.html.Page;
//import org.apache.commons.io.FileUtiles;
import org.openqa.selenium.OutputType;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.remote.server.handler.FindElement;
import org.openqa.selenium.support.ui.WebDriverWait;
import org.openqa.selenium.support.ui.ExpectedCondition;



public class streamwebtest01 {

/**programa args*/
	
	public static void main(String args[]){
		
		// Automated method Tab
		
		WebDriver driver = new FirefoxDriver();
		
		System.out.println("/***TstCode***/");
		
		driver.get("http://www.google.com");
		//driver.quit();
		
		//Fill the search word into textbox named "q"
		//and submit it to serach
		
		WebElement element = driver.findElement(By.name("q"));
		//element.sendKeys("Streambox Inc");
		element.sendKeys("Streambox Live Login");
		element.submit();
		
				
		
		System.out.println("Page title is"+ driver.getTitle());
		//Google's search is rendered dynamically with JavaScript
		//element.getAttribute("chh");
		//element.sendKeys("serg");
		
		//element.isSelected();
		//element.submit();
		
		//This statement is the function to wait for 10 seconds at maximum 
		driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);
		
		//
		//WebElement element2= driver.findElement(By.partialLinkText("Streambox Inc"));
		WebElement element2= driver.findElement(By.partialLinkText("Streambox Live Login"));
		
		//WebDriver wait = new FluentWait<WebDriver>(driver,10,10);
		element2.click();
		
		driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);

		WebElement element3 =driver.findElement(By.partialLinkText("Streambox Live"));
		//WebElement element3 =driver.findElement(By.name("facebook"));
		//element3.click();
		
		//driver.navigate().back();
		
		//driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);
		System.out.println("on the way1");
		
	//WebElement element4=driver.findElement(By.partialLinkText("Sign Up Now"));
		
		//WebElement element4=driver.findElement(By.linkText("Live Login"));
		//element4.click();
		driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
		
		////////////////////////////////////////////////////////////
		//input the username to the blank of username
		//
		
		WebElement element5=driver.findElement(By.id("username").className("entryfield"));
		element5.sendKeys("hiro");
		
		driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
		
		//WebElement element6=driver.findElement(By.id("password").className("entryfield").name("sngPass"));
		//element6.click();
		
		
		///////////////////////////////////////////////////////////////////
		//input the password to the brank of password
		////By.name("flex").id("password");
		
		WebElement element6=driver.findElement(By.className("entryfield").id("password"));
			element6.sendKeys("demo");
		
				System.out.println("on the way1");
		
		WebElement element7= driver.findElement(By.id("password").name("entryfield"));
		element7.click();
	
	
	
	
	
	
	
	
	
	
		System.out.println("Finish");
		
		//driver.quit();
		
	}

private static int check(WebDriver driver, WebElement element4) {
	// TODO Auto-generated method stub
	
	if(driver.findElement(By.linkText("http://live.streambox.com/ls/includes/inc_login_iframe.php")) != null)
		return 1;
	return -1;
}

	
}