master
Matthew Huntington 2 years ago
parent 4a1a4a0205
commit 07466ad208

@ -4,9 +4,9 @@ const delay = (ms) => {
setTimeout(resolve, ms);
});
}
let driver;
const login = async ()=> {
const driver = await new selenium.Builder().forBrowser('chrome').build();
driver = await new selenium.Builder().forBrowser('chrome').build();
await driver.get('https://outcomes.generalassemb.ly/');
let selection = selenium.By.id('identify_email');
@ -37,5 +37,28 @@ const login = async ()=> {
element = await driver.findElements(selection);
element[1].click();
await delay(10000);
search();
}
const search = async () => {
let selection = selenium.By.id('program');
let element = driver.findElement(selection);
let select = new selenium.Select(element);
await select.selectByVisibleText('Software Engineering Immersive Remote');
selection = selenium.By.id('metro');
element = driver.findElement(selection);
select = new selenium.Select(element);
await select.selectByVisibleText('Online');
selection = selenium.By.id('from');
element = driver.findElement(selection);
element.sendKeys('01/01/2021');
selection = selenium.By.id('filter-form');
element = driver.findElement(selection);
element.submit();
}
login();

Loading…
Cancel
Save