Example usage for org.openqa.selenium WebElement click

List of usage examples for org.openqa.selenium WebElement click

Introduction

In this page you can find the example usage for org.openqa.selenium WebElement click.

Prototype

void click();

Source Link

Document

Click this element.

Usage

From source file:bst.cpo.automation.dm.actions.Settings_Actions.java

public void Sync_Computers_Click() {
    //app1/cpo/#/settings/sync
    logThis("Nav: Settings > Sync Computers");
    WebElement element = DMDriver.findElement(By.linkText("Sync Computers"));
    element.click();
    Assert.assertTrue(homeAction.Get_Main_Header().contains("Sync computers"),
            "Failed - Navigation to 'Sync computers'");
}

From source file:bst.cpo.automation.dm.actions.Settings_Actions.java

public void Meeting_Room_Connector_Click() {
    //app1/cpo/#/settings/iwb
    //TODO - Only available for BA users, add logic
    logThis("Nav: Settings > Meeting Room Connector");
    WebElement element = DMDriver.findElement(By.linkText("Meeting Room Connector"));
    element.click();
    Assert.assertTrue(homeAction.Get_Main_Header().contains("Meeting Room Connector"),
            "Failed - Navigation to 'Meeting Room Connector'");
}

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();
    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();
    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();
    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();
    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();
    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();
    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();
    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();
    Assert.assertTrue(homeAction.Get_Main_Header().contains("My License"),
            "Failed - Navigation to Dashboard 'My License'");
}