Skip to content

Instantly share code, notes, and snippets.

@muditlambda
Created October 23, 2019 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save muditlambda/66bf0deec7c863c45e335078539dc558 to your computer and use it in GitHub Desktop.
Save muditlambda/66bf0deec7c863c45e335078539dc558 to your computer and use it in GitHub Desktop.
WebElement heightLabel = driver.findElement(By.xpath("//*[@id='app']/section/form/div/div/h1"));
// Locate the textbox where username should be inputted
WebElement heightUserBox = driver.findElement(withTagName("input")
.below(heightLabel));
heightUserBox.sendKeys("user-name");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment