use std::{thread::sleep, time::Duration};
use thirtyfour::*;
#[tokio::main]
async fn main() {
let caps = DesiredCapabilities::chrome();
let driver = WebDriver::new("http://localhost:9515", caps).await.unwrap();
driver.goto("https://assist.org/transfer/results?year=74&institution=137&agreement=79&agreementType=to&view=agreement&viewBy=major&viewSendingAgreements=false").await.unwrap();
sleep(Duration::from_secs(1));
let form = driver.find(By::XPath("///*[@id=\"transfer-agreement-search\"]/div[2]/ng-select")).await.unwrap();
form.click().await.unwrap();
let colleges = driver.find_all(By::ClassName("ng-dropdown-panel-items scroll-host")).await.unwrap();
for college in colleges {
println!("{}", college.text().await.unwrap());
}
driver.quit().await.unwrap()
}