WebDriver: test imported/selenium/py/test/selenium/webdriver/common/api_example_tests...
[WebKit-https.git] / Source / WebDriver / Session.cpp
index 1a4240a..6a1abc4 100644 (file)
@@ -698,7 +698,7 @@ void Session::getToplevelBrowsingContextRect(Function<void (CommandResult&&)>&&
         double width, height;
         if (!browsingContext->getObject(ASCIILiteral("windowSize"), windowSize)
             || !windowSize->getDouble(ASCIILiteral("width"), width)
-            || !windowSize->getDouble(ASCIILiteral("height"), width)) {
+            || !windowSize->getDouble(ASCIILiteral("height"), height)) {
             completionHandler(CommandResult::fail(CommandResult::ErrorCode::UnknownError));
             return;
         }