Get the element central location correctly if there is drop down menu
When we calculate the element's central location, we need to consider about the overflow case that the element's view area is less than its actually area. For the drop down menu bar, the drop down menu list's parent is the menu bar, which does not have any overlap with the menu item, so we should consider about the parent's boundary when there is no overlap between the element's area and the parent's area. Bug: chromedriver:3205 Change-Id: I39c8292dc730cf23a562ed206ddaccb09a5b36c5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1908057 Commit-Queue: Lan Wei <lanwei@chromium.org> Reviewed-by:John Chen <johnchen@chromium.org> Cr-Commit-Position: refs/heads/master@{#714587}
Showing
Please register or sign in to comment