congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Keys.chord
Code IndexAdd Tabnine to your IDE (free)

How to use
chord
method
in
org.openqa.selenium.Keys

Best Java code snippets using org.openqa.selenium.Keys.chord (Showing top 20 results out of 315)

origin: com.github.bordertech.wcomponents/wcomponents-test-lib

  /**
   * Clear the content of a WTextArea.
   */
  public void clearContent() {
    WebElement input = getInputField();
    input.sendKeys(Keys.chord(Keys.CONTROL, "a"));
    input.sendKeys(Keys.chord(Keys.COMMAND, "a"));
    input.sendKeys(Keys.DELETE);
    input.sendKeys(Keys.BACK_SPACE);
  }
}
origin: com.github.bordertech.webfriends/webfriends-selenium

/**
 * @param key the access key
 */
public void sendAccessKey(final String key) {
  WebElement body = findWebElement(SeleniumTags.BODY);
  body.sendKeys(Keys.chord(Keys.ALT + key));
}
origin: com.github.bordertech.webfriends/webfriends-selenium

/**
 * Send tab forward key.
 */
public void sendTabForward() {
  WebElement body = findWebElement(SeleniumTags.BODY);
  body.sendKeys(Keys.chord(Keys.TAB));
}
origin: com.github.bordertech.webfriends/webfriends-selenium

/**
 * Send tab backwards key.
 */
public void sendTabBackward() {
  WebElement body = findWebElement(SeleniumTags.BODY);
  StringBuilder keys = new StringBuilder();
  keys.append(Keys.SHIFT);
  keys.append(Keys.TAB);
  body.sendKeys(Keys.chord(keys.toString()));
}
origin: EnMasseProject/enmasse

public void clearInput(WebElement element) {
  element.sendKeys(Keys.chord(Keys.CONTROL, "a"));
  element.sendKeys(Keys.BACK_SPACE);
  angularDriver.waitForAngularRequestsToFinish();
  log.info("Cleared input");
}
origin: org.richfaces/richfaces-page-fragments

@Override
public void cancel() {
  getInput().sendKeys(Keys.chord(Keys.CONTROL, Keys.ESCAPE));
  waitAfterConfirmOrCancel();
}
origin: com.atlassian.confluence/confluence-webdriver-pageobjects

/**
 * @since 5.8.0
 */
public void insertLink() {
  sendKeysToWindow(Keys.chord(getControlOrCommand(), "k"));
}
origin: org.xwiki.platform/xwiki-platform-flamingo-theme-test-pageobjects

public void setVariableValue(String variableName, String value)
{
  WebElement variableField = getDriver().findElement(By.xpath("//label[text() = '@"+variableName+"']/..//input"));
  // Remove the previous value
  variableField.sendKeys(Keys.chord(Keys.CONTROL, "a"), Keys.BACK_SPACE);
  // Write the new one
  variableField.sendKeys(value);
}
origin: sayems/java.webdriver

  public void pressShiftAndTab() {
    Actions action = new Actions(driver);
    action.sendKeys(Keys.chord(Keys.SHIFT),
        Keys.chord(Keys.TAB)).build().perform();
  }
}
origin: com.atlassian.confluence/confluence-webdriver-pageobjects

public void save() {
  sendKeysToPageBody(Keys.chord(getControlOrCommand(), "s"));
}
origin: org.xwiki.platform/xwiki-platform-flamingo-theme-test-pageobjects

/**
 * @since 6.3RC1
 */
public void setTextareaValue(String variableName, String value)
{
  WebElement variableField = getDriver().findElement(
      By.xpath("//label[text() = '@"+variableName+"']/..//textarea"));
  // Remove the previous value
  variableField.sendKeys(Keys.chord(Keys.CONTROL, "a"), Keys.BACK_SPACE);
  // Write the new one
  variableField.sendKeys(value);
}
origin: org.jspringbot/jspringbot-selenium

public void zoomOut(int times) {
  LOG.keywordAppender().appendArgument("Times", times);
  WebElement html = driver.findElement(By.tagName("html"));
  for(int i = 0; i < times; i++) {
    if(isMacOS()) {
      LOG.keywordAppender().appendArgument("Os X", true);
      html.sendKeys(Keys.chord(Keys.COMMAND, Keys.SUBTRACT));
    } else {
      html.sendKeys(Keys.chord(Keys.CONTROL, Keys.SUBTRACT));
    }
  }
}
origin: org.jspringbot/jspringbot-selenium

public void zoomIn(int times) {
  LOG.keywordAppender().appendArgument("Times", times);
  WebElement html = driver.findElement(By.tagName("html"));
  for(int i = 0; i < times; i++) {
    if(isMacOS()) {
      LOG.keywordAppender().appendArgument("Os X", true);
      html.sendKeys(Keys.chord(Keys.COMMAND, Keys.ADD));
    } else {
      html.sendKeys(Keys.chord(Keys.CONTROL, Keys.ADD));
    }
  }
}
origin: net.thucydides/thucydides-core

@Override
public void clear() {
  getElement().sendKeys(Keys.chord(Keys.CONTROL,"a"), Keys.DELETE);
  getElement().clear();
}
origin: Wikia/selenium-tests

public void copyAndPaste() {
 wait.forElementClickable(editArea);
 editArea.sendKeys(Keys.chord(Keys.CONTROL, "a"));
 editArea.sendKeys(Keys.chord(Keys.CONTROL, "c"));
 editArea.sendKeys(Keys.chord(Keys.CONTROL, "v"));
 editArea.sendKeys(Keys.chord(Keys.CONTROL, "v"));
 Log.log("copyAndPaste", editArea.getText(), true, driver);
}
origin: com.machinepublishers/jbrowserdriver

void keysType(final CharSequence... charsList) {
 for (CharSequence chars : charsList) {
  if (Util.KEYBOARD_DELETE.equals(chars.toString())) {
   keysTypeHelper(Keys.chord(Keys.CONTROL, "a"));
   keysTypeHelper(Keys.BACK_SPACE.toString());
  } else {
   keysTypeHelper(chars);
  }
 }
}
origin: net.serenity-bdd/core

@Override
public void clear() {
  if (!isMobileDriver()) {
    getElement().sendKeys(Keys.chord(Keys.CONTROL, "a"), Keys.DELETE);
  }
  getElement().clear();
}
origin: net.serenity-bdd/serenity-core

@Override
public void clear() {
  if (driverIsDisabled()) { return;}
  if (!isMobileDriver()) {
    getElement().sendKeys(Keys.chord(Keys.CONTROL, "a"), Keys.DELETE);
  }
  getElement().clear();
}
origin: org.richfaces/richfaces-page-fragments

@Override
public void confirm() {
  new Actions(getBrowser()).sendKeys(Keys.chord(Keys.CONTROL, Keys.RETURN)).perform();
  waitAfterConfirmOrCancel();
}
origin: org.richfaces/richfaces-page-fragments

@Override
public void selectAllRowsWithKeyShortcut() {
  advanced().getTableBodyElement().sendKeys(Keys.chord(Keys.CONTROL, "a"));
  if (advanced().getTableRowsElements().size() >= 1) {
    Graphene.waitAjax().until().element(advanced().getTableRowsElements().get(0)).attribute("class")
      .contains(advanced().getStyleClassForSelectedRow());
    Graphene.waitAjax().until()
      .element(advanced().getTableRowsElements().get(advanced().getTableRowsElements().size() - 1))
      .attribute("class").contains(advanced().getStyleClassForSelectedRow());
  }
}
org.openqa.seleniumKeyschord

Popular methods of Keys

  • toString
  • valueOf
  • name
  • values
  • charAt
  • equals
  • getKeyFromUnicode
    Get the special key representation, Keys, of the supplied character if there is one. If there is no
  • getCodePoint

Popular in Java

  • Creating JSON documents from java classes using gson
  • putExtra (Intent)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getResourceAsStream (ClassLoader)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now