@Parameters( { "STLBDataID", "STLBExpVal", "STLDataID", "STLExpVal", "STBCDataID"})
	@Test
	public void test_WidgetSignInWithInvalidSharethisAccount(int STLBDataID,
			int STLBExpVal, int STLDataID, int STLExpVal, int STBCDataID) {
		
		STLaunchBrowser launchBrowser = new STLaunchBrowser();
		launchBrowser.stLaunch(STLBDataID, STLBExpVal, "STOP");
		
		
		try {
			Thread.sleep(10000);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}

		/***********************************************************************
		 * ST_SIW_02- This scenario is to Signing-in into widget with invalid ShareThis credentials
		 1. Browse to any website. Click on Browser plugin or Bookmarklet or button in the 
		 	address bar or Button available on webpage
		 2. Click on ShareThis icon present in the widget footer
		 3. Provide invalid ShareThis login details and click on sign-in.
		 
		 * ST_SIW_03- This scenario is to check Creating a new ShareThis Account without 
		 * providing data in available text fields
		 1. Browse to any website.
		 2. Click on ShareThis widget to launch.
		 3. Click on Sign in link, login window appears.
		 4. Click on Register link
		 5. Try to register without providing any data.  
		 **********************************************************************/	
		
		STCommonLibrary comLib = new STCommonLibrary();	
		STLogin login = new STLogin ();
//		STRegisterAndSign register = new STRegisterAndSign();
		String emailerrormsg = "";
		String pwderrormsg = "";	
		String status;
		
		//********** Launch Widget******		
		launchBrowser.stLaunchOauthWidget(OAUTH_WIDGET, OAUTH_WIDGET_WINDOW, 0, "STOP");
		
		//********Click on Sign in link*****		
		comLib.stClickAndVerifyLink(OAUTH_WIDGET_SIGNIN_LINK, STBCDataID, 0, 1, "");		
		
		/* Execution of ST_SIW_03 */
		Vector <String> xpath = new Vector<String>();
		Vector<String> errorMsg = new Vector<String>();
		
		xpath.add(SIGNIN_BUTTON);
		errorMsg.add("Sign in button is not present");
		
		comLib.stVerifyObjects(xpath, errorMsg, "");
		
		browser.click(SIGNIN_BUTTON);
		
		try {
			Thread.sleep(5000);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		
		if (browser.isElementPresent(SIGNIN_ERROR_PANEL))
		{
			emailerrormsg = browser.getText(SIGNIN_ERROR_PANEL);
			System.out.println(emailerrormsg);
		}
		try {
			Thread.sleep(5000);
		} catch (InterruptedException e1) {
			e1.printStackTrace();
		}
//		if (browser.isElementPresent(SIGNIN_PASSWORD_ERRORMSG))
//		{
//			 pwderrormsg = browser.getText(SIGNIN_PASSWORD_ERRORMSG);
//		}
//		try {
//			Thread.sleep(2000);
//		} catch (InterruptedException e1) {
//			e1.printStackTrace();
//		}
		
		if ((emailerrormsg.contains("* Username is required")) )
		{
			status = "PASS";
			browser.click(SIGNIN_ERROR_PANEL_OK_BUTTON);
		}else
		{
			status = "FAIL";
			browser.click(SIGNIN_ERROR_PANEL_OK_BUTTON);
		}
		
		comLib.stLogResult(status, "ST_SIW_03", "", red);
		
		/* Execution of ST_SIW_02 */
		//********* Click on Sign In Button************
		status = login.stSharethisLogin(STLDataID, STLExpVal, "STOP");
		
		comLib.stLogResult(status, "ST_SIW_02", "STOP", red);		
		
		comLib.stTearDown(red);

	}