-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/by image utils #367
Conversation
I would rather like to implement an UiElement uiElement = find(By.image('...'));
uiElement.click(); |
A kind of But this usecase does not work at canvas graphics where you only have a big From my point a |
@TobiasAdler I would approve this PR. Please resolve the conflicts. Thanks! |
# Conflicts: # driver-ui/src/main/java/eu/tsystems/mms/tic/testframework/utils/JSUtils.java # integration-tests/src/test/java/eu/tsystems/mms/tic/testframework/test/guielement/AbstractGuiElementNonFunctionalAssertionTest.java # integration-tests/src/test/java/eu/tsystems/mms/tic/testframework/test/reporting/ScreenshotsTest.java
@martingrossmann All conflicts have been resolved. |
Description
By-image-utils & helper methods
In
DesktopWebDriverUtils
, the methodsclickByImage
andmouseOverByImage
were added to provide a new way to hover over and click an element, that may not be possible to find in the usual ways (for example the test method elements in the threads view of testerra report, which are inside of a canvas element and can not be accessed by selenium).These methods are build with the sikuli-api, which provides the possibility to search for images in the current viewport of the web driver. Since only the current viewport is analysed, a scroll-by-value-functionality and helper methods for the browser were added in
JSUtils
and used to ensure the image is searched in the complete webpage.Unit- & report-ng-tests
The report-ng-tests for the threads view were updated to use the
mouseOverByImage
-method since due to the canvas element of echarts it was not possible to access the specific test methods in the usual ways.Unit tests for the new utilities were added as well.
Type of change
Please delete options that are not relevant.
Checklist: