{"size": 1291, "ext": "js", "max_stars_repo_path": "linkedin_search.js", "max_stars_repo_name": "jd-harden-ware2go/selenium-starter-project", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "linkedin_search.js", "max_issues_repo_name": "jd-harden-ware2go/selenium-starter-project", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "linkedin_search.js", "max_forks_repo_name": "jd-harden-ware2go/selenium-starter-project", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 41.6451612903, "max_line_length": 137, "alphanum_fraction": 0.748257165}
// import java.util.concurrent.TimeUnit;
// import org.openqa.selenium.support.ui.WebDriverWait; 

var webdriver = require('selenium-webdriver'),
    By = webdriver.By,
    until = webdriver.until;

var chrome = require('selenium-webdriver/chrome');
var path = require('chromedriver').path;

var service = new chrome.ServiceBuilder(path).build();
chrome.setDefaultService(service);

var driver = new webdriver.Builder()
    .withCapabilities(webdriver.Capabilities.chrome())
    .build();

//launch sogeti.com and search for a term
driver.manage().window().maximize();
driver.manage().timeouts().implicitlyWait(5);
driver.get('http://www.linkedin.com')
driver.manage().timeouts().implicitlyWait(5);

//Search for a company on LinkedIn - General Motors
// driver.findElement(By.css('.sign-in-card__dismiss-icon')).click();
driver.manage().timeouts().implicitlyWait(5);
driver.findElement(By.css('[data-tracking-control-name="homepage-basic_dismissable-input"][name="keywords"]')).click();
driver.manage().timeouts().implicitlyWait(1);
driver.findElement(By.css('[data-tracking-control-name="homepage-basic_dismissable-input"][name="keywords"]')).sendKeys('General Motors')
driver.manage().timeouts().implicitlyWait(1);
driver.findElement(By.css('button[data-searchbar-type="JOBS"]')).click();