Skip to content

Commit 51b051a

Browse files
committed
Bidi: Pass clickablePoint
1 parent 7bed981 commit 51b051a

File tree

2 files changed

+2
-15
lines changed

2 files changed

+2
-15
lines changed

lib/PuppeteerSharp.Nunit/TestExpectations/TestExpectations.local.json

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -735,21 +735,6 @@
735735
"FAIL"
736736
]
737737
},
738-
{
739-
"comment": "This is part of organizing the webdriver bidi implementation, We will remove it one by one",
740-
"testIdPattern": "[jshandle.spec] *.clickablePoint*",
741-
"platforms": [
742-
"darwin",
743-
"linux",
744-
"win32"
745-
],
746-
"parameters": [
747-
"webDriverBiDi"
748-
],
749-
"expectations": [
750-
"FAIL"
751-
]
752-
},
753738
{
754739
"comment": "This is part of organizing the webdriver bidi implementation, We will remove it one by one",
755740
"testIdPattern": "[jshandle.spec] *.evaluateHandle*",

lib/PuppeteerSharp/ElementHandle.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,6 +1002,8 @@ private void IntersectBoundingBox(BoundingBox box, decimal width, decimal height
10021002
? Math.Min(height - box.Y, box.Height)
10031003
: Math.Min(height, box.Height + box.Y),
10041004
0);
1005+
box.X = Math.Max(box.X, 0);
1006+
box.Y = Math.Max(box.Y, 0);
10051007
}
10061008
}
10071009
}

0 commit comments

Comments
 (0)