jdi-light icon indicating copy to clipboard operation
jdi-light copied to clipboard

Error in UIElement.command when browser is unfocused

Open obitkin opened this issue 3 years ago • 1 comments

Open io.github.epam.material.tests.inputs.DateTimePickersTests

  • master_material_ui branch
  • 2f53a4bd commit
  1. Run DateTimePickersTests

  2. While browser is starting tests(before 1-st test) focus on another window - IDEA: Screenshot 2021-12-06 233120

  3. datePickerDialogTest and timePickerTest are failed

  4. Reason: Enter from confirm() method has been sent into IDEA twice instead of browser because browser was unfocused.

@JDIAction("Confirm changes in {name} and close")
public void confirm() {
    command("Enter");
}
Screenshot 2021-12-06 233510

UIElement.command(String sequence) doesn't works fine with unfocused browsers. For example, with tests that run in parallel on CI.

obitkin avatar Dec 06 '21 20:12 obitkin

Issue is not reproducable.

GgStormer avatar Jun 20 '22 15:06 GgStormer

Parallel execution is not a problem for command. But local actions can be a reason for many actions. Not a bug

pnatashap avatar Mar 31 '23 04:03 pnatashap