Skip to content

Instantly share code, notes, and snippets.

/**
* See if the element (name|label|id) is greater than the % of the window
*
* @Then /^the element "([^"]*)" should be "([^"]*)" percent or greater than the window$/
*/
public function theElementShouldBePercentOrGreaterThanTheWindow($arg1, $arg2)
{
//1. make sure the target exists
//2. get the height of the target
//3. compare it to the window height