2019/10/31 13:22:59:396 HTTPServer: POST http://localhost:4444/session/02F989FF-31C2-4279-B68D-2B2E70B61FB5/element
2019/10/31 13:22:59:396 HTTPServer: {"using":"xpath","value":"//*[@id=\"login-link\"]"}
2019/10/31 13:22:59:396 AutomationProtocol: SEND {"method":"Automation.isShowingJavaScriptDialog","params":{"browsingContextHandle":"page-994B2B31-57A0-471E-89E0-DEEF68E2DDBE"},"id":11}
2019/10/31 13:22:59:397 AutomationProtocol: RECV {"result":{"result":false},"id":11}
2019/10/31 13:22:59:397 AutomationProtocol: SEND {"method":"Automation.evaluateJavaScriptFunction","params":{"arguments":["\"xpath\"","null","\"\\/\\/*[@id=\\\"login-link\\\"]\"","true","0"],"frameHandle":"","expectsImplicitCallbackArgument":true,"function":"//# sourceURL=__InjectedScript_WDFindNodes.js\nfunction(strategy,ancestorElement,query,firstResultOnly,timeoutDuration,callback){ancestorElement=ancestorElement||document;switch(strategy){case\"id\":strategy=\"css selector\";query=\"[id=\\\"\"+escape(query)+\"\\\"]\";break;case\"name\":strategy=\"css selector\";query=\"[name=\\\"\"+escape(query)+\"\\\"]\";break;}\nswitch(strategy){case\"css selector\":case\"link text\":case\"partial link text\":case\"tag name\":case\"class name\":case\"xpath\":break;default:\n throw{name:\"InvalidParameter\",message:(\"Unsupported locator strategy: \"+strategy+\".\")};}\nfunction escape(string){return string.replace(/\\\\/g,\"\\\\\\\\\").replace(/\"/g,\"\\\\\\\"\");}\nfunction tryToFindNode(){try{switch(strategy){case\"css selector\":if(firstResultOnly)\nreturn ancestorElement.querySelector(query)||null;return Array.from(ancestorElement.querySelectorAll(query));case\"link text\":let linkTextResult=[];for(let link of ancestorElement.getElementsByTagName(\"a\")){if(link.text.trim()==query){linkTextResult.push(link);if(firstResultOnly)\nbreak;}}\nif(firstResultOnly)\nreturn linkTextResult[0]||null;return linkTextResult;case\"partial link text\":let partialLinkResult=[];for(let link of ancestorElement.getElementsByTagName(\"a\")){if(link.text.includes(query)){partialLinkResult.push(link);if(firstResultOnly)\nbreak;}}\nif(firstResultOnly)\nreturn partialLinkResult[0]||null;return partialLinkResult;case\"tag name\":let tagNameResult=ancestorElement.getElementsByTagName(query);if(firstResultOnly)\nreturn tagNameResult[0]||null;return Array.from(tagNameResult);case\"class name\":let classNameResult=ancestorElement.getElementsByClassName(query);if(firstResultOnly)\nreturn classNameResult[0]||null;return Array.from(classNameResult);case\"xpath\":if(firstResultOnly){let xpathResult=document.evaluate(query,ancestorElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null);if(!xpathResult)\nreturn null;return xpathResult.singleNodeValue;}\nlet xpathResult=document.evaluate(query,ancestorElement,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);if(!xpathResult||!xpathResult.snapshotLength)\nreturn[];let arrayResult=[];for(let i=0;i\u003CxpathResult.snapshotLength;++i)\narrayResult.push(xpathResult.snapshotItem(i));return arrayResult;}}catch(error){\n throw{name:\"InvalidSelector\",message:error.message};}}\nconst pollInterval=50;let pollUntil=performance.now()+timeoutDuration;function pollForNode(){let result=tryToFindNode();if(typeof result===\"string\"||result instanceof Node||(result instanceof Array&&result.length)){callback(result);return;}\nlet durationRemaining=pollUntil-performance.now();if(durationRemaining\u003CpollInterval){callback(firstResultOnly?null:[]);return;}\nsetTimeout(pollForNode,pollInterval);}\npollForNode();}\n","browsingContextHandle":"page-994B2B31-57A0-471E-89E0-DEEF68E2DDBE","callbackTimeout":0},"id":12}
2019/10/31 13:22:59:407 AutomationProtocol: RECV {"result":{"result":"{\"session-node-02F989FF-31C2-4279-B68D-2B2E70B61FB5\":\"node-19CDF7E9-2E53-45D1-AFE3-5354727A0D2E\"}"},"id":12}
2019/10/31 13:22:59:407 HTTPServer: --> HTTP 200
2019/10/31 13:22:59:408 HTTPServer: --> {"value":{"element-6066-11e4-a52e-4f735466cecf":"node-19CDF7E9-2E53-45D1-AFE3-5354727A0D2E"}}
2019/10/31 13:22:59:418 HTTPServer: POST http://localhost:4444/session/02F989FF-31C2-4279-B68D-2B2E70B61FB5/element/node-19CDF7E9-2E53-45D1-AFE3-5354727A0D2E/click
2019/10/31 13:22:59:418 HTTPServer: {}
2019/10/31 13:22:59:418 AutomationProtocol: SEND {"method":"Automation.isShowingJavaScriptDialog","params":{"browsingContextHandle":"page-994B2B31-57A0-471E-89E0-DEEF68E2DDBE"},"id":13}
2019/10/31 13:22:59:419 AutomationProtocol: RECV {"result":{"result":false},"id":13}
2019/10/31 13:22:59:419 AutomationProtocol: SEND {"method":"Automation.evaluateJavaScriptFunction","params":{"arguments":["{\"session-node-02F989FF-31C2-4279-B68D-2B2E70B61FB5\":\"node-19CDF7E9-2E53-45D1-AFE3-5354727A0D2E\"}"],"frameHandle":"","expectsImplicitCallbackArgument":false,"function":"// sourceURL=__InjectedScript_WebDriver_ElementFetchAttributes.js\n//# sourceURL=__InjectedScript_WDElementFetchAttributes.js\nfunction fetchTagNameAndAttributesOfElement(element){\"use strict\";let tagName=element.tagName.toUpperCase();let attributes={};for(let i=0;i\u003Celement.attributes.length;++i){let name=element.attributes[i].name.toLowerCase();let value=element.attributes[i].value;if(!value.length)\nvalue=null;attributes[name]=value;}\nreturn{tagName,attributes};}\n","browsingContextHandle":"page-994B2B31-57A0-471E-89E0-DEEF68E2DDBE","callbackTimeout":30000},"id":14}
2019/10/31 13:22:59:465 AutomationProtocol: RECV {"result":{"result":"{\"tagName\":\"A\",\"attributes\":{\"href\":\"/login\",\"id\":\"login-link\",\"class\":\"user-interactions-action-signin user-interactions-action\"}}"},"id":14}
2019/10/31 13:22:59:466 AutomationProtocol: SEND {"method":"Automation.evaluateJavaScriptFunction","params":{"arguments":["{\"session-node-02F989FF-31C2-4279-B68D-2B2E70B61FB5\":\"node-19CDF7E9-2E53-45D1-AFE3-5354727A0D2E\"}"],"frameHandle":"","expectsImplicitCallbackArgument":false,"function":"// sourceURL=__InjectedScript_WebDriver_ScrollIntoView.js\nfunction(element) { element.scrollIntoViewIfNeeded(); }","browsingContextHandle":"page-994B2B31-57A0-471E-89E0-DEEF68E2DDBE","callbackTimeout":30000},"id":15}
2019/10/31 13:22:59:523 AutomationProtocol: RECV {"result":{"result":"null"},"id":15}
2019/10/31 13:22:59:524 AutomationProtocol: SEND {"method":"Automation.evaluateJavaScriptFunction","params":{"arguments":["{\"session-node-02F989FF-31C2-4279-B68D-2B2E70B61FB5\":\"node-19CDF7E9-2E53-45D1-AFE3-5354727A0D2E\"}"],"frameHandle":"","expectsImplicitCallbackArgument":false,"function":"// sourceURL=__InjectedScript_WebDriver_ElementDisplayed.js\n//# sourceURL=__InjectedScript_WDElementDisplayed.js\nfunction isShown(element){\"use strict\";function nodeIsElement(node){if(!node)\nreturn false;switch(node.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:return true;default:return false;}}\nfunction parentElementForElement(element){if(!element)\nreturn null;return enclosingNodeOrSelfMatchingPredicate(element.parentNode,nodeIsElement);}\nfunction enclosingNodeOrSelfMatchingPredicate(targetNode,predicate){for(let node=targetNode;node&&node!==targetNode.ownerDocument;node=node.parentNode)\nif(predicate(node))\nreturn node;return null;}\nfunction enclosingElementOrSelfMatchingPredicate(targetElement,predicate){for(let element=targetElement;element&&element!==targetElement.ownerDocument;element=parentElementForElement(element))\nif(predicate(element))\nreturn element;return null;}\nfunction cascadedStylePropertyForElement(element,property){if(!element||!property)\nreturn null;let computedStyle=window.getComputedStyle(element);let computedStyleProperty=computedStyle.getPropertyValue(property);if(computedStyleProperty&&computedStyleProperty!==\"inherit\")\nreturn computedStyleProperty;\n \nlet parentElement=parentElementForElement(element);return cascadedStylePropertyForElement(parentElement,property);}\nfunction elementSubtreeHasNonZeroDimensions(element){let boundingBox=element.getBoundingClientRect();if(boundingBox.width\u003E0&&boundingBox.height\u003E0)\nreturn true;if(element.tagName.toUpperCase()===\"PATH\"&&boundingBox.width+boundingBox.height\u003E0){let strokeWidth=cascadedStylePropertyForElement(element,\"stroke-width\");return!!strokeWidth&&(parseInt(strokeWidth,10)\u003E0);}\nlet cascadedOverflow=cascadedStylePropertyForElement(element,\"overflow\");if(cascadedOverflow===\"hidden\")\nreturn false;\nreturn Array.from(element.childNodes).some((childNode)=\u003E{if(childNode.nodeType===Node.TEXT_NODE)\nreturn true;if(nodeIsElement(childNode))\nreturn elementSubtreeHasNonZeroDimensions(childNode);return false;});}\nfunction elementOverflowsContainer(element){let cascadedOverflow=cascadedStylePropertyForElement(element,\"overflow\");if(cascadedOverflow!==\"hidden\")\nreturn false;return true;}\nfunction isElementSubtreeHiddenByOverflow(element){if(!element)\nreturn false;if(!elementOverflowsContainer(element))\nreturn false;if(!element.childNodes.length)\nreturn false;return Array.from(element.childNodes).every((childNode)=\u003E{if(!nodeIsElement(childNode))\nreturn true;if(!elementSubtreeHasNonZeroDimensions(childNode))\nreturn true;return isElementSubtreeHiddenByOverflow(childNode);});}\nif(!(element instanceof Element))\nthrow new Error(\"Cannot check the displayedness of a non-Element argument.\");if(!document.contains(element))\nreturn false;switch(element.tagName.toUpperCase()){case\"BODY\":return true;case\"SCRIPT\":case\"NOSCRIPT\":return false;case\"OPTGROUP\":case\"OPTION\":let enclosingSelectElement=enclosingNodeOrSelfMatchingPredicate(element,(e)=\u003Ee.tagName.toUpperCase()===\"SELECT\");return isShown(enclosingSelectElement);case\"INPUT\":if(element.type===\"hidden\")\nreturn false;break;case\"MAP\":default:break;}\nif(cascadedStylePropertyForElement(element,\"visibility\")!==\"visible\")\nreturn false;let hasAncestorWithZeroOpacity=!!enclosingElementOrSelfMatchingPredicate(element,(e)=\u003E{return Number(cascadedStylePropertyForElement(e,\"opacity\"))===0;});let hasAncestorWithDisplayNone=!!enclosingElementOrSelfMatchingPredicate(element,(e)=\u003E{return cascadedStylePropertyForElement(e,\"display\")===\"none\";});if(hasAncestorWithZeroOpacity||hasAncestorWithDisplayNone)\nreturn false;if(!elementSubtreeHasNonZeroDimensions(element))\nreturn false;if(isElementSubtreeHiddenByOverflow(element))\nreturn false;return true;}\n","browsingContextHandle":"page-994B2B31-57A0-471E-89E0-DEEF68E2DDBE","callbackTimeout":30000},"id":16}
2019/10/31 13:22:59:610 AutomationProtocol: RECV {"result":{"result":"true"},"id":16}
2019/10/31 13:22:59:610 AutomationProtocol: SEND {"method":"Automation.computeElementLayout","params":{"nodeHandle":"node-19CDF7E9-2E53-45D1-AFE3-5354727A0D2E","frameHandle":"","coordinateSystem":"LayoutViewport","browsingContextHandle":"page-994B2B31-57A0-471E-89E0-DEEF68E2DDBE","scrollIntoViewIfNeeded":false},"id":17}
2019/10/31 13:22:59:636 AutomationProtocol: RECV {"result":{"rect":{"origin":{"x":1323,"y":52},"size":{"width":80,"height":36}},"inViewCenterPoint":{"x":1362,"y":70},"isObscured":false},"id":17}
2019/10/31 13:22:59:637 AutomationProtocol: SEND {"method":"Automation.performInteractionSequence","params":{"frameHandle":"","inputSources":[{"sourceId":"mouse","sourceType":"Mouse"}],"steps":[{"states":[{"sourceId":"mouse","location":{"x":0,"y":0},"origin":"Element","nodeHandle":"node-19CDF7E9-2E53-45D1-AFE3-5354727A0D2E"}]},{"states":[{"sourceId":"mouse","pressedButton":"Left","location":{"x":0,"y":0},"origin":"Element","nodeHandle":"node-19CDF7E9-2E53-45D1-AFE3-5354727A0D2E"}]},{"states":[{"sourceId":"mouse","origin":"Pointer","nodeHandle":"node-19CDF7E9-2E53-45D1-AFE3-5354727A0D2E"}]}],"handle":"page-994B2B31-57A0-471E-89E0-DEEF68E2DDBE"},"id":18}
2019/10/31 13:22:59:665 AutomationProtocol: RECV {"result":{},"id":18}
2019/10/31 13:22:59:665 AutomationProtocol: SEND {"method":"Automation.waitForNavigationToComplete","params":{"frameHandle":"","pageLoadTimeout":300000,"pageLoadStrategy":"Normal","browsingContextHandle":"page-994B2B31-57A0-471E-89E0-DEEF68E2DDBE"},"id":19}
2019/10/31 13:22:59:666 AutomationProtocol: RECV {"result":{},"id":19}