Please analyze the following code file and determine whether it belongs…
- User
Assistant: User: Please analyze the following code file and determine whether it belongs to any of the provided modules based on the listed module descriptions. Note that the provided list of modules may not be exhaustive, and some files may not belong to any of the modules. If the code belongs to a module, Only output the module name, without any explanation or additional information; otherwise, return 'None' if it does not belong to any module.
Modules : { "UI": "Handles the front-end user interface, consisting of HTML, CSS, and JavaScript files generated by the Angular framework. It processes user requests and interacts with the server using AJAX for data retrieval and client-side interactions.""Test Driver": "Facilitates automated regression testing and handles transmission of test data in JSON format. It performs Java testing using TestNG and JavaScript unit-testing with Jest. It also sets up a simulated web server for servlet-level tests and automates end-to-end testing using Selenium Java." "Logic": "Manages the business logic of TEAMMATES, including handling relationships between entities, managing transactions, input value sanitization, access control rights, and interfacing with GAE-provided or third-party APIs." "Storage": "Performs CRUD operations on data entities, validation of data, and abstraction of GQL queries, hiding the complexities of datastore from the Logic component." "Common": "Contains utility classes, custom exceptions, and data transfer objects used across the entire application for easy consolidation and transfer of structured data." "E2E": "Handles end-to-end testing and load & performance testing, providing helpers, abstractions of browser pages, and test cases for E2E tests and L&P tests." "Client": "Contains scripts for administrative tasks, such as migrating data to a new schema and calculating statistics. This module connects directly to the application back-end for administrative purposes." }
Code: package teammates.e2e.pageobjects; /** * A programmatic interface to the Browser used to test the app. */ public class Browser { private static final String PAGE_LOAD_SCRIPT; static { try { PAGE_LOAD_SCRIPT = FileHelper.readFile("src/e2e/resources/scripts/waitForPageLoad.js"); } catch (IOException e) { throw new RuntimeException(e); } } /** * The {@link WebDriver} object that drives the Browser instance. */ WebDriver driver; /** * Keeps track of multiple windows opened by the {@link WebDriver}. */ private final ArrayDeque<String> windowHandles = new ArrayDeque<>(); public Browser() { this.driver = createWebDriver(); this.driver.manage().window().maximize(); this.driver.manage().timeouts().pageLoadTimeout(Duration.ofSeconds(TestProperties.TEST_TIMEOUT * 2L)); this.driver.manage().timeouts().scriptTimeout(Duration.ofSeconds(TestProperties.TEST_TIMEOUT)); } public WebDriver getDriver() { return driver; } public void addCookie(String name, String value, boolean isSecure, boolean isHttpOnly) { Cookie cookie = new Cookie.Builder(name, value) .isSecure(isSecure) .isHttpOnly(isHttpOnly) .build(); this.driver.manage().addCookie(cookie); } /** * Switches to new browser window for browsing. */ public void switchToNewWindow() { String curWin = driver.getWindowHandle(); for (String handle : driver.getWindowHandles()) { if (!handle.equals(curWin) && !windowHandles.contains(curWin)) { windowHandles.push(curWin); driver.switchTo().window(handle); break; } } } /** * Waits for the page to load. This includes all AJAX requests and Angular animations in the page. * * @param excludeToast Set this to true if toast message's disappearance should not be counted * as criteria for page load's completion. */ public void waitForPageLoad(boolean excludeToast) { try { WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(TestProperties.TEST_TIMEOUT)); wait.until(driver -> { return "complete".equals( ((JavascriptExecutor) driver).executeAsyncScript(PAGE_LOAD_SCRIPT, excludeToast ? 1 : 0) ); }); } catch (ScriptTimeoutException e) { System.out.println("Page could not load completely. Trying to continue test."); } } /** * Waits for the page to load by only looking at the page's readyState. */ public void waitForPageReadyState() { WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(TestProperties.TEST_TIMEOUT)); wait.until(driver -> { return "complete".equals(((JavascriptExecutor) driver).executeScript("return document.readyState")); }); } /** * Closes the current browser window and switches back to the last window used previously. */ public void closeCurrentWindowAndSwitchToParentWindow() { driver.close(); driver.switchTo().window(windowHandles.pop()); } /** * Closes the current browser. */ public void close() { driver.quit(); } /** * Visits the given URL. */ public void goToUrl(String url) { if (TestProperties.BROWSER.equals(TestProperties.BROWSER_CHROME)) { // Recent - Assistant
E2E