Java tutorial
/* * Copyright (c) 1998-2014 Citrix Online LLC * All Rights Reserved Worldwide. * * THIS PROGRAM IS CONFIDENTIAL AND PROPRIETARY TO CITRIX ONLINE * AND CONSTITUTES A VALUABLE TRADE SECRET. Any unauthorized use, * reproduction, modification, or disclosure of this program is * strictly prohibited. Any use of this program by an authorized * licensee is strictly subject to the terms and conditions, * including confidentiality obligations, set forth in the applicable * License and Co-Branding Agreement between Citrix Online LLC and * the licensee. */ package com.citrix.g2w.webdriver.pages.survey; import org.openqa.selenium.WebDriver; import org.openqa.selenium.support.PageFactory; import org.testng.Assert; import com.citrix.g2w.webdriver.pages.BasePage; /** * @author: Ankit Ag */ public class SurveyAnswerSubmittedPage extends BasePage { /** * Constructor to initialize instance variables and verify if we are on the * Survey test Page. * * @param webDriver * (web driver) */ public SurveyAnswerSubmittedPage(final WebDriver webDriver) { this.driver = webDriver; Assert.assertTrue(webDriver.getCurrentUrl().contains("/survey/submitted.tmpl")); PageFactory.initElements(this.driver, this); } }