Skip to content

Commit abefa3d

Browse files
committed
fix mouseout command
1 parent d108fe4 commit abefa3d

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

packages/selenium-ide/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,12 @@
108108
"@seleniumhq/code-export-csharp-xunit": "^4.0.0-alpha.3",
109109
"@seleniumhq/code-export-java-junit": "^4.0.0-alpha.3",
110110
"@seleniumhq/code-export-javascript-mocha": "^4.0.0-alpha.5",
111-
"@seleniumhq/code-export-python-pytest": "^4.0.0-alpha.3",
111+
"@seleniumhq/code-export-python-pytest": "^4.0.0-alpha.4",
112112
"@seleniumhq/code-export-ruby-rspec": "^4.0.0-alpha.3",
113113
"@seleniumhq/get-driver": "^4.0.0-alpha.3",
114114
"@seleniumhq/side-api": "^4.0.0-alpha.39",
115115
"@seleniumhq/side-model": "^4.0.0-alpha.5",
116-
"@seleniumhq/side-runtime": "^4.0.0-alpha.32",
116+
"@seleniumhq/side-runtime": "^4.0.0-alpha.33",
117117
"dnd-core": "^16.0.1",
118118
"electron-chromedriver": "^28.0.0",
119119
"electron-log": "^5.0.1",

packages/side-runner/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "selenium-side-runner",
3-
"version": "4.0.0-alpha.62",
3+
"version": "4.0.0-alpha.63",
44
"private": false,
55
"description": "Run Selenium IDE projects in cli",
66
"repository": "https://github.com/SeleniumHQ/selenium-ide",
@@ -24,7 +24,7 @@
2424
"license": "Apache-2.0",
2525
"dependencies": {
2626
"@seleniumhq/side-model": "^4.0.0-alpha.5",
27-
"@seleniumhq/side-runtime": "^4.0.0-alpha.32",
27+
"@seleniumhq/side-runtime": "^4.0.0-alpha.33",
2828
"commander": "^11.0.0",
2929
"glob": "^10.3.1",
3030
"jest": "^29.6.0",

packages/side-runtime/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@seleniumhq/side-runtime",
3-
"version": "4.0.0-alpha.32",
3+
"version": "4.0.0-alpha.33",
44
"private": false,
55
"description": "Selenium IDE playback and execution",
66
"author": "Tomer <[email protected]>",

packages/side-runtime/src/webdriver.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -620,23 +620,23 @@ export default class WebDriverExecutor {
620620

621621
// try top
622622
if (rect.top > 0) {
623-
const y = -(rect.height / 2 + 1)
623+
const y = Math.round(-(rect.height / 2 + 1))
624624
return await this.driver
625625
.actions({ bridge: true })
626626
.move({ origin: element, y })
627627
.perform()
628628
}
629629
// try right
630630
else if (vp.width > rect.right) {
631-
const x = rect.right / 2 + 1
631+
const x = Math.round(rect.right / 2 + 1)
632632
return await this.driver
633633
.actions({ bridge: true })
634634
.move({ origin: element, x })
635635
.perform()
636636
}
637637
// try bottom
638638
else if (vp.height > rect.bottom) {
639-
const y = rect.height / 2 + 1
639+
const y = Math.round(rect.height / 2 + 1)
640640
return await this.driver
641641
.actions({ bridge: true })
642642
.move({ origin: element, y })

pnpm-lock.yaml

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)