Closed mshabarov closed 2 years ago
Running tests locally I got the following error in LiferayUploadIT
org.openqa.selenium.UnsupportedCommandException: unknown command: unknown command: session/f1cfdffffa23ffd675299c0f666f2534/se/file
It seems a know issue with Selenium 4, already fixed in TestBench https://github.com/vaadin/flow-components/issues/2633 https://github.com/SeleniumHQ/selenium/issues/10352
Directly using UploadElement.upload
instead of manually handling input WebElement seems to fix the problem locally
UploadElement upload = getVaadinPortletRootElement()
.$(UploadElement.class).waitForFirst();
/* ----> Current Implementation <------
WebElement input = upload.$("*").id("fileInput");
setLocalFileDetector(input);
input.sendKeys(file.getAbsolutePath());
*/
upload.upload(file); // <---- Replaces current implementation
SonarQube analysis reported 7 issues
Description
Co-authored-by: Mikael Grankvist mgrankvi@vaadin.com
Related-to #221
Type of change
Checklist
Additional for
Feature
type of change