@@ -0,0 +1,1506 @@
+import java.util.Set;%0Aimport org.openqa.selenium.By;%0Aimport org.openqa.selenium.Cookie;%0Aimport org.openqa.selenium.WebDriver;%0Aimport org.openqa.selenium.WebElement;%0Aimport org.openqa.selenium.htmlunit.HtmlUnitDriver;%0A%0Apublic class SeleniumMain %7B%0A%0A%09//This logs you into BYU.edu and brings you %0A%09public static void main(String%5B%5D args) %7B%0A%09%09%0A%09%09// Create a new instance of the html unit driver%0A%09%09WebDriver driver = new HtmlUnitDriver();%0A%0A%09%09%09%09%0A%09%09//driver.get(%22https://cas.byu.edu/cas/login?service=http://andyetitcompiles.com%22);%0A%09%09//driver.get(%22https://home.byu.edu/webapp/mymap/register?pageId=t124b%22);%0A%09%09//driver.get(%22https://gamma.byu.edu/ry/ae/prod/person/cgi/personSummary.cgi%22);%0A%09%09driver.get(%22https://cas.byu.edu%22);%0A%09%09%09%09%0A%09%09String title = driver.getTitle();%0A%09%09System.out.println(title);%0A%09%09%0A%09%09//Login Code%0A%09%09if(title.equals(%22Brigham Young University Sign-in Service%22))%7B%0A%09%09%09%09%0A%09%09%09WebElement name = driver.findElement(By.id(%22netid%22));%0A%09%09%09WebElement password = driver.findElement(By.id(%22password%22));%0A%09%09%09%0A%09%09%09name.sendKeys(%22khalterm%22);%0A%09%09%09password.sendKeys(%22Bre-lv149%22);%0A%09%09%09password.submit();%0A%09%09%09%0A%09%09%09System.out.println(driver.getTitle());%0A%09%09%7D%0A%09%09%0A%09%09//Print the new URL%0A%09%09System.out.println(driver.getCurrentUrl());%09%0A%09%09%0A%09%09//driver.get(%22https://my.byu.edu/NotificationPortlet/scripts/success.json%22);%0A%09%09//driver.get(%22https://cas.byu.edu%22);%0A%09%09%0A%09%09//Cookie Grabbing test%0A%09%09Set%3CCookie%3E set = driver.manage().getCookies();%0A%09%09System.out.println(set.size());%0A%09%09for (Cookie c : set) %7B%0A%09%09%09System.out.println(c);%0A%09%09%7D%0A%09%09%0A%09%09%0A%09%7D%0A%7D%0A

Create BYULoginCode-Selenium.java