jdi-light
jdi-light copied to clipboard
Error in UIElement.command when browser is unfocused
Open io.github.epam.material.tests.inputs.DateTimePickersTests
- master_material_ui branch
- 2f53a4bd commit
-
Run DateTimePickersTests
-
While browser is starting tests(before 1-st test) focus on another window - IDEA:
-
datePickerDialogTest
andtimePickerTest
are failed -
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");
}

UIElement.command(String sequence)
doesn't works fine with unfocused browsers. For example, with tests that run in parallel on CI.
Issue is not reproducable.
Parallel execution is not a problem for command. But local actions can be a reason for many actions. Not a bug