We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f2fd81 commit b462925Copy full SHA for b462925
java/client/src/org/openqa/selenium/remote/RemoteWebElement.java
@@ -374,7 +374,7 @@ public Point getLocation() {
374
@SuppressWarnings({"unchecked"})
375
public Dimension getSize() {
376
Response response = parent.getW3CStandardComplianceLevel() == 0
377
- ? execute(DriverCommand.GET_ELEMENT_LOCATION, ImmutableMap.of("id", id))
+ ? execute(DriverCommand.GET_ELEMENT_SIZE, ImmutableMap.of("id", id))
378
: execute(DriverCommand.GET_ELEMENT_RECT, ImmutableMap.of("id", id));
379
Map<String, Object> rawSize = (Map<String, Object>) response.getValue();
380
int width = ((Number) rawSize.get("width")).intValue();
0 commit comments