citrusframework / citrusframework/yaks

Selenium Input Step Extension

Open
#408 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
90
Forks
28
PR merge metrics
No merged PRs in 30d

Description

Consider to split SetInputAction from FindElementAction (maybe others too) and add clear behaviour for input fields.

I'm testing a a table where i need to scroll right so i can input some filter criteria for a column at the end of the table.
I've found that FindElement throws an exception since the input element can not be accessed.

So my workaround is a customized SetInputAction that implements AbstractSeleniumAction:

````
new Actions(driver).moveToElement(element).click().perform(); // move to that element
element.sendKeys(Keys.CONTROL, "a"); // send clear input, so that browser events are published (refresh)
element.sendKeys(Keys.DELETE);
element.sendKeys(resolvedValue); // finally send the new input value
````
The actions are only used to move to that element. I've tried to combine all the steps with the actions but ended up with issues sending the keys.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.