List of usage examples for org.openqa.selenium By linkText
public static By linkText(String linkText)
From source file:bst.cpo.automation.dm.actions.Settings_Actions.java
public void Users_Click() { //app1/cpo/#/settings/users logThis("Nav: Settings > Users"); logThis("Looking for the Users Link"); WebElement element = DMDriver.findElement(By.linkText("Users")); element.click();/*from w ww . j av a2s . co m*/ Assert.assertTrue(homeAction.Get_Main_Header().contains("Users"), "Failed - Navigation to 'Users'"); }
From source file:bst.cpo.automation.dm.actions.Settings_Actions.java
public void Groups_Click() { //app1/cpo/#/settings/groups logThis("Nav: Settings > Groups"); WebElement element = DMDriver.findElement(By.linkText("Groups")); element.click();/* www . j a va 2s . c o m*/ Assert.assertTrue(homeAction.Get_Main_Header().contains("Groups"), "Failed - Navigation to 'Groups'"); }
From source file:bst.cpo.automation.dm.actions.Settings_Actions.java
public void Notifications_Click() { //app1/cpo/#/settings/notifications logThis("Nav: Settings > Notifications"); WebElement element = DMDriver.findElement(By.linkText("Notifications")); element.click();//from ww w .j av a2 s . c om Assert.assertTrue(homeAction.Get_Main_Header().contains("Notifications"), "Failed - Navigation to 'Notifications'"); }
From source file:bst.cpo.automation.dm.actions.Settings_Actions.java
public void Index_Fields_Click() { //TODO - Only available for BA users, add logic //app1/cpo/#/settings/index-fields logThis("Nav: Settings > Index Fields"); WebElement element = DMDriver.findElement(By.linkText("Index Fields")); element.click();/*from w w w . j a va 2 s. c o m*/ Assert.assertTrue(homeAction.Get_Main_Header().contains("Index fields"), "Failed - Navigation to 'Index fields'"); }
From source file:bst.cpo.automation.dm.actions.Settings_Actions.java
public void My_Log_Click() throws InterruptedException { //app1/cpo/#/settings/myLog logThis("Nav: Settings > My Log"); WebElement element = DMDriver.findElement(By.linkText("My Log")); element.click();/*from ww w. j ava2 s. c om*/ Assert.assertTrue(homeAction.Get_Main_Header().contains("My log"), "Failed - Navigation to 'My log'"); }
From source file:bst.cpo.automation.dm.actions.Settings_Actions.java
public void Admin_Log_Click() throws InterruptedException { //app1/cpo/#/settings/adminLog //TODO - Only available for BA users, add logic (note, link != header) logThis("Nav: Settings > Admin Log"); WebElement element = DMDriver.findElement(By.linkText("Admin Log")); element.click();//from www . j a v a2 s. com Assert.assertTrue(homeAction.Get_Main_Header().contains("My log"), "Failed - Navigation to 'My log'"); }
From source file:bst.cpo.automation.dm.actions.Settings_Actions.java
public void My_Profile_Click() throws InterruptedException { //app1/cpo/#/settings/profile logThis("Nav: Settings > My Profile"); WebElement element = DMDriver.findElement(By.linkText("My Profile")); element.click();//from www . j av a 2s . c o m Assert.assertTrue(homeAction.Get_Main_Header().contains("My profile"), "Failed - Navigation to Dashboard 'My profile'"); }
From source file:bst.cpo.automation.dm.actions.Settings_Actions.java
public void My_License_Click() throws InterruptedException { //app1/cpo/#/settings/license //TODO - not avail for BA user, add logic to check. logThis("Nav: Settings > My License"); WebElement element = DMDriver.findElement(By.linkText("My License")); element.click();/* w w w .java 2 s . c o m*/ Assert.assertTrue(homeAction.Get_Main_Header().contains("My License"), "Failed - Navigation to Dashboard 'My License'"); }
From source file:bst.cpo.automation.dm.actions.Settings_Actions.java
public void My_Docs_Trash_Click() throws InterruptedException { //app1/cpo/#/settings/trash logThis("Nav: Settings > My Docs Trash"); WebElement element = DMDriver.findElement(By.linkText("My Docs Trash")); element.click();//from w w w.j av a2 s. com Assert.assertTrue(homeAction.Get_Main_Header().contains("My docs trash"), "Failed - Navigation to Dashboard 'My docs trash'"); }
From source file:bst.cpo.automation.dm.actions.SystemOverview_Actions.java
public void License_Management_Click() { logThis("Clicking License Management Link (Not currently working in Alpha)"); WebElement element = DMDriver.findElement(By.linkText("License Management")); element.click();/*from www .j a v a2 s .c om*/ }