Skip to content

Fixed misaligned screenshot#217

Merged
pekkakaho merged 4 commits into
TESTARtool:masterfrom
TMenting:bugfix/fixed_misalligned_screenshot
Feb 19, 2020
Merged

Fixed misaligned screenshot#217
pekkakaho merged 4 commits into
TESTARtool:masterfrom
TMenting:bugfix/fixed_misalligned_screenshot

Conversation

@TMenting

Copy link
Copy Markdown
Contributor

Fixed creating screenshots for desktop and webdriver on windows.
NOTE: Webdriver is currently only fixed for chrome browser

Since getState is called before begineSecquence it should be save to
move the logic of setting the system PID and window handle towards
getState. This is needed because in getState we create an initial
screenshot and therefor we need to have the window handle in order to
obtain the display scale.
@TMenting TMenting changed the title Bugfix/fixed misalligned screenshot Fixed misaligned screenshot Jan 25, 2020
Fix mouse coordinates for scaled displays

Adapt the mouse coordinates to the display scale of the screen
Set Window handle in the access bridge constructor, to solve an issue with swing apps.

Use ConcreteIDCustom instead of ConcreteID, because the first one creates a new screenshots if any widget property changes.

@pekkakaho pekkakaho left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Has been tested with:

  • Windows display settings 100% + blurry/not blurry and 150% + blurry/not blurry,
  • desktop generic and webdriver generic,
  • both with master branch and this pull request.

Both master and this pull request have some issues with screenshots with some of the combinations. However, this pull request seems to fix the issues with TESTAR executing actions with wrong coordinates, so it is better than master.

@pekkakaho pekkakaho merged commit 1e6ca70 into TESTARtool:master Feb 19, 2020
@TMenting TMenting deleted the bugfix/fixed_misalligned_screenshot branch February 21, 2020 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants