Saturday 29 September 2018

1st Selenium

package snjb1;

import java.util.HashMap;
import java.util.concurrent.TimeUnit;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;

import com.gargoylesoftware.htmlunit.javascript.host.Map;

public class Mac {

WebDriver driver;

public Mac()
{

//Map<String, Object> prefs = new HashMap<String, Object>();
     
        // Set the notification setting it will override the default setting
//prefs.put("profile.default_content_setting_values.notifications", 2);

        // Create object of ChromeOption class
ChromeOptions options = new ChromeOptions();

        // Set the experimental option
//options.setExperimentalOption("prefs", prefs);

System.setProperty("webdriver.chrome.driver", "D:\\java toolssss\\chromedriver.exe");
driver = new ChromeDriver();
//driver=new FirefoxDriver();
driver.manage().timeouts().implicitlyWait(120, TimeUnit.SECONDS);

//"https://www.shiksha.com/tags/symbiosis-institute-of-telecom-management-sitm-tdp-198268"


driver.get("http://facebook.com/");
// driver.manage().window().maximize();



}

public static void main(String[] args) {
// TODO Auto-generated method stub
  new Mac();
}

}






Crome Driver :
https://drive.google.com/open?id=1yM9JjspZPKbzsehTjxs06hX84I6kTU9X

How to delete duplicate records from a SQL data table

  introduction How to delete duplicate records from a SQL data table using CTE (common table expression). Specifies a temporary named result...