NAME
Kernel::Test::Role::Selenium::HandlesWebElement – role to interact with web elements in selenium tests.
ElementIsVisibleOnScreen()
Test if a web element is visible in the screen.
$Test->ElementIsVisibleOnScreen(
Selector => '//someelement[contains(.,"sometext")]',
Name => 'somename',
);
ElementIsNotVisibleOnScreen()
Test if a web element is not longer visible in the screen.
$Test->ElementIsNotVisibleOnScreen(
Selector => '//someelement[contains(.,"sometext")]',
Name => 'somename',
);
ElementIsHiddenOnScreen()
Test if a web element is hidden.
$Test->ElementIsHiddenOnScreen(
Selector => '//someelement[contains(.,"sometext")]',
Name => 'somename',
);
ElementCheckText()
Check the element text.
$Test->ElementCheckText(
Selector => '//someelement[contains(.,"sometext")]',
Name => 'somename',
Text => 'somevalue',
);
ElementCheckValue()
Check the element Value.
$Test->ElementCheckValue(
Selector => '//someelement[contains(.,"sometext")]',
Name => 'somename',
Value => 'somevalue',
);