Skip to content

Commit

Permalink
Update Actions.java as removed modifier keys (#12903)
Browse files Browse the repository at this point in the history
#12902 as issue mentioned, the previous modifier keys won't be there any more, we should remove incorrect expectations.
  • Loading branch information
alaahong committed Oct 17, 2023
1 parent bb12405 commit d7dd881
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions java/src/org/openqa/selenium/interactions/Actions.java
Expand Up @@ -65,9 +65,7 @@ public Actions(WebDriver driver) {
* either <i>keyUp(theKey)</i> or <i>sendKeys(Keys.NULL)</i> must be called to release the
* modifier.
*
* @param key Either {@link Keys#META}, {@link Keys#COMMAND}, {@link Keys#SHIFT}, {@link Keys#ALT}
* or {@link Keys#CONTROL}. If the provided key is none of those, {@link
* IllegalArgumentException} is thrown.
* @param key
* @return A self reference.
*/
public Actions keyDown(CharSequence key) {
Expand All @@ -79,9 +77,7 @@ public Actions keyDown(CharSequence key) {
* <i>Actions.click(element).sendKeys(theKey);</i>
*
* @see #keyDown(CharSequence)
* @param key Either {@link Keys#META}, {@link Keys#COMMAND}, {@link Keys#SHIFT}, {@link Keys#ALT}
* or {@link Keys#CONTROL}. If the provided key is none of those, {@link
* IllegalArgumentException} is thrown.
* @param key
* @param target WebElement to perform the action
* @return A self reference.
*/
Expand All @@ -94,8 +90,7 @@ public Actions keyDown(WebElement target, CharSequence key) {
* Performs a modifier key release. Releasing a non-depressed modifier key will yield undefined
* behaviour.
*
* @param key Either {@link Keys#META}, {@link Keys#COMMAND}, {@link Keys#SHIFT}, {@link Keys#ALT}
* or {@link Keys#CONTROL}.
* @param key
* @return A self reference.
*/
public Actions keyUp(CharSequence key) {
Expand All @@ -107,8 +102,7 @@ public Actions keyUp(CharSequence key) {
* <i>Actions.click(element).sendKeys(theKey);</i>
*
* @see #keyUp(CharSequence) on behaviour regarding non-depressed modifier keys.
* @param key Either {@link Keys#META}, {@link Keys#COMMAND}, {@link Keys#SHIFT}, {@link Keys#ALT}
* or {@link Keys#CONTROL}.
* @param key
* @param target WebElement to perform the action on
* @return A self reference.
*/
Expand Down

0 comments on commit d7dd881

Please sign in to comment.