Skip to content

Commit b462925

Browse files
committed
Fixing getSize operation broken by copy-paste from getLocation
1 parent 9f2fd81 commit b462925

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/client/src/org/openqa/selenium/remote/RemoteWebElement.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ public Point getLocation() {
374374
@SuppressWarnings({"unchecked"})
375375
public Dimension getSize() {
376376
Response response = parent.getW3CStandardComplianceLevel() == 0
377-
? execute(DriverCommand.GET_ELEMENT_LOCATION, ImmutableMap.of("id", id))
377+
? execute(DriverCommand.GET_ELEMENT_SIZE, ImmutableMap.of("id", id))
378378
: execute(DriverCommand.GET_ELEMENT_RECT, ImmutableMap.of("id", id));
379379
Map<String, Object> rawSize = (Map<String, Object>) response.getValue();
380380
int width = ((Number) rawSize.get("width")).intValue();

0 commit comments

Comments
 (0)