Skip to content

Instantly share code, notes, and snippets.

@IanVaughan
Created January 15, 2020 17:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IanVaughan/4aabcce9e987a493f7d483104e7bd9be to your computer and use it in GitHub Desktop.
Save IanVaughan/4aabcce9e987a493f7d483104e7bd9be to your computer and use it in GitHub Desktop.
User signup flow
*** Selenium start ***
Selenium (FAILED - 1)
*** Capybara start ***
javascript_driver: selenium_chrome_headless
current_driver: selenium_chrome_headless
default_driver: rack_test
Capybara starting Puma...
* Version 3.12.2 , codename: Llamas in Pajamas
* Min threads: 0, max threads: 4
* Listening on tcp://127.0.0.1:56381
/Users/ianvaughan/.asdf/installs/ruby/2.7.0/lib/ruby/gems/2.7.0/gems/webmock-3.7.6/lib/webmock/http_lib_adapters/net_http.rb:271: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/Users/ianvaughan/.asdf/installs/ruby/2.7.0/lib/ruby/2.7.0/net/protocol.rb:114: warning: The called method `initialize' is defined here
2020-01-15 17:03:50 DEBUG Webdrivers Checking current version
2020-01-15 17:03:50 DEBUG Webdrivers /Users/ianvaughan/.webdrivers/chromedriver is already downloaded
2020-01-15 17:03:50 DEBUG Webdrivers making System call: ["/Users/ianvaughan/.webdrivers/chromedriver", "--version"]
2020-01-15 17:03:50 DEBUG Webdrivers System call returned: ChromeDriver 79.0.3945.36 (3582db32b33893869b8c1339e8f4d9ed1816f143-refs/branch-heads/3945@{#614})
2020-01-15 17:03:50 DEBUG Webdrivers Current version of /Users/ianvaughan/.webdrivers/chromedriver is ChromeDriver 79.0.3945.36 (3582db32b33893869b8c1339e8f4d9ed1816f143-refs/branch-heads/3945@{#614})
2020-01-15 17:03:50 DEBUG Webdrivers making System call: ["//Applications/Google Chrome.app/Contents/MacOS/Google Chrome", "--version"]
2020-01-15 17:03:50 DEBUG Webdrivers System call returned: Google Chrome 79.0.3945.117
2020-01-15 17:03:50 DEBUG Webdrivers Browser version: Google Chrome 79.0.3945.117
2020-01-15 17:03:50 DEBUG Webdrivers Latest version available: 79.0.3945.36
2020-01-15 17:03:50 DEBUG Webdrivers A working webdriver version is already on the system
2020-01-15 17:03:50 DEBUG Selenium Executing Process ["/Users/ianvaughan/.webdrivers/chromedriver", "--port=9515"]
2020-01-15 17:03:50 DEBUG Selenium polling for socket on ["127.0.0.1", 9515]
Starting ChromeDriver 79.0.3945.36 (3582db32b33893869b8c1339e8f4d9ed1816f143-refs/branch-heads/3945@{#614}) on port 9515
Only local connections are allowed.
Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
2020-01-15 17:03:51 INFO Selenium -> POST session
2020-01-15 17:03:51 INFO Selenium >>> http://127.0.0.1:9515/session | {"desiredCapabilities":{"browserName":"chrome","version":"","platform":"ANY","javascriptEnabled":true,"cssSelectorsEnabled":true,"takesScreenshot":false,"nativeEvents":false,"rotatable":false,"goog:chromeOptions":{"args":["--headless","--disable-site-isolation-trials"]}},"capabilities":{"firstMatch":[{"browserName":"chrome","goog:chromeOptions":{"args":["--headless","--disable-site-isolation-trials"]}}]}}
2020-01-15 17:03:51 DEBUG Selenium > {"Accept"=>"application/json", "Content-Type"=>"application/json; charset=UTF-8", "User-Agent"=>"selenium/3.142.7 (ruby macosx)", "Content-Length"=>"408"}
2020-01-15 17:03:51 INFO Selenium <- {"value":{"capabilities":{"acceptInsecureCerts":false,"browserName":"chrome","browserVersion":"79.0.3945.117","chrome":{"chromedriverVersion":"79.0.3945.36 (3582db32b33893869b8c1339e8f4d9ed1816f143-refs/branch-heads/3945@{#614})","userDataDir":"/var/folders/_p/8xrf0hzx529f6lsdylfy_v3m0000gp/T/.com.google.Chrome.S6v0ut"},"goog:chromeOptions":{"debuggerAddress":"localhost:56388"},"networkConnectionEnabled":false,"pageLoadStrategy":"normal","platformName":"mac os x","proxy":{},"setWindowRect":true,"strictFileInteractability":false,"timeouts":{"implicit":0,"pageLoad":300000,"script":30000},"unhandledPromptBehavior":"dismiss and notify"},"sessionId":"30abd0f776af8fa12d653e2200d2a17f"}}
2020-01-15 17:03:51 INFO Selenium Detected W3C dialect.
2020-01-15 17:03:51 INFO Selenium -> POST session/30abd0f776af8fa12d653e2200d2a17f/url
2020-01-15 17:03:51 INFO Selenium >>> http://127.0.0.1:9515/session/30abd0f776af8fa12d653e2200d2a17f/url | {"url":"http://127.0.0.1:56381/"}
2020-01-15 17:03:51 DEBUG Selenium > {"Accept"=>"application/json", "Content-Type"=>"application/json; charset=UTF-8", "User-Agent"=>"selenium/3.142.7 (ruby macosx)", "Content-Length"=>"33"}
2020-01-15 17:03:51 INFO Selenium <- {"value":null}
2020-01-15 17:03:51 INFO Selenium -> GET session/30abd0f776af8fa12d653e2200d2a17f/window/handles
2020-01-15 17:03:51 INFO Selenium <- {"value":["CDwindow-61FEF6502E447E629D30BE154B80DA46"]}
/Users/ianvaughan/.asdf/installs/ruby/2.7.0/lib/ruby/gems/2.7.0/gems/capybara-3.30.0/lib/capybara/session.rb:751: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/Users/ianvaughan/.asdf/installs/ruby/2.7.0/lib/ruby/gems/2.7.0/gems/capybara-3.30.0/lib/capybara/node/actions.rb:41: warning: The called method `click_link' is defined here
2020-01-15 17:03:51 INFO Selenium -> POST session/30abd0f776af8fa12d653e2200d2a17f/elements
2020-01-15 17:03:51 INFO Selenium >>> http://127.0.0.1:9515/session/30abd0f776af8fa12d653e2200d2a17f/elements | {"using":"xpath","value":".//a[./@href][((((./@id = 'Sign Up') or contains(normalize-space(string(.)), 'Sign Up')) or contains(./@title, 'Sign Up')) or .//img[contains(./@alt, 'Sign Up')])]"}
2020-01-15 17:03:51 DEBUG Selenium > {"Accept"=>"application/json", "Content-Type"=>"application/json; charset=UTF-8", "User-Agent"=>"selenium/3.142.7 (ruby macosx)", "Content-Length"=>"191"}
2020-01-15 17:03:51 INFO Selenium <- {"value":[{"element-6066-11e4-a52e-4f735466cecf":"02c1b129-16d7-4bdb-800e-025e3722e6cd"},{"element-6066-11e4-a52e-4f735466cecf":"3e7742c0-5c14-48f2-8fc2-a9b757cfc480"}]}
2020-01-15 17:03:51 INFO Selenium Using script for :isDisplayed
2020-01-15 17:03:51 INFO Selenium -> POST session/30abd0f776af8fa12d653e2200d2a17f/execute/sync
2020-01-15 17:03:51 INFO Selenium >>> http://127.0.0.1:9515/session/30abd0f776af8fa12d653e2200d2a17f/execute/sync | {"script":"return ((function(){function d(t,e,n){function r(t){var e=x(t);if(0<e.height&&0<e.width)return!0;if(\"PATH\"==t.tagName.toUpperCase()&&(0<e.height||0<e.width)){var n=window.getComputedStyle(t)[\"stroke-width\"];return!!n&&0<parseInt(n,10)}return\"hidden\"!=window.getComputedStyle(t).overflow&&Array.prototype.slice.call(t.childNodes).some(function(t){return t.nodeType==Node.TEXT_NODE||t.nodeType==Node.ELEMENT_NODE&&r(t)})}function i(t){return C(t)==T.HIDDEN&&Array.prototype.slice.call(t.childNodes).every(function(t){return t.nodeType!=Node.ELEMENT_NODE||i(t)||!r(t)})}var o=t.tagName.toUpperCase();if(\"BODY\"==o)return!0;if(\"OPTION\"==o||\"OPTGROUP\"==o){var a=c(t,function(t){return\"SELECT\"==t.tagName.toUpperCase()});return!!a&&d(a,!0,n)}var u=s(t);if(u)return!!u.image&&0<u.rect.width&&0<u.rect.height&&d(u.image,e,n);if(\"INPUT\"==o&&\"hidden\"==t.type.toLowerCase())return!1;if(\"NOSCRIPT\"==o)return!1;var l=window.getComputedStyle(t).visibility;return\"collapse\"!=l&&\"hidden\"!=l&&(!!n(t)&&(!(!e&&0==f(t))&&(!!r(t)&&!i(t))))}function E(t){var e=x(t);return{left:e.left,right:e.left+e.width,top:e.top,bottom:e.top+e.height}}function D(t){return t.parentElement}function C(t){function e(t){function e(t){if(t==u)return!0;var e=window.getComputedStyle(t),n=e.display;return 0!=n.indexOf(\"inline\")&&\"contents\"!=n&&(\"absolute\"!=r||\"static\"!=e.position)}var r=window.getComputedStyle(t).position;if(\"fixed\"==r)return i=!0,t==u?null:u;for(var n=D(t);n&&!e(n);)n=D(n);return n}function n(t){var e=t;if(\"visible\"==d)if(t==u&&l)e=l;else if(t==l)return{x:\"visible\",y:\"visible\"};var n=window.getComputedStyle(e),r={x:n[\"overflow-x\"],y:n[\"overflow-y\"]};return t==u&&(r.x=\"visible\"==r.x?\"auto\":r.x,r.y=\"visible\"==r.y?\"auto\":r.y),r}function r(t){return t==u?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop}}for(var i,o=E(t),a=t.ownerDocument,u=a.documentElement,l=a.body,d=window.getComputedStyle(u).overflow,f=e(t);f;f=e(f)){var h=n(f);if(\"visible\"!=h.x||\"visible\"!=h.y){var s=x(f);if(0==s.width||0==s.height)return T.HIDDEN;var p=o.right<s.left,c=o.bottom<s.top;if(p&&\"hidden\"==h.x||c&&\"hidden\"==h.y)return T.HIDDEN;if(p&&\"visible\"!=h.x||c&&\"visible\"!=h.y){var v=r(f),g=o.right<s.left-v.x,w=o.bottom<s.top-v.y;return g&&\"visible\"!=h.x||w&&\"visible\"!=h.x?T.HIDDEN:C(f)==T.HIDDEN?T.HIDDEN:T.SCROLL}var N=o.left>=s.left+s.width,m=o.top>=s.top+s.height;if(N&&\"hidden\"==h.x||m&&\"hidden\"==h.y)return T.HIDDEN;if(N&&\"visible\"!=h.x||m&&\"visible\"!=h.y){if(i){var y=r(f);if(o.left>=u.scrollWidth-y.x||o.right>=u.scrollHeight-y.y)return T.HIDDEN}return C(f)==T.HIDDEN?T.HIDDEN:T.SCROLL}}}return T.NONE}function o(t){var e=t.document.documentElement;return{width:e.clientWidth,height:e.clientHeight}}function p(t,e,n,r){return{left:t,top:e,width:n,height:r}}function x(t){var e,n=s(t);if(n)return n.rect;if(\"HTML\"==t.tagName.toUpperCase()){t.ownerDocument;var r=o(window);return p(0,0,r.width,r.height)}try{e=t.getBoundingClientRect()}catch(i){return p(0,0,0,0)}return p(e.left,e.top,e.right-e.left,e.bottom-e.top)}function f(t){var e=1,n=window.getComputedStyle(t).opacity;n&&(e=Number(n));var r=D(t);return r&&r.nodeType==Node.ELEMENT_NODE&&(e*=f(r)),e}function h(t){var e=t.shape.toLowerCase(),n=t.coords.split(\",\");if(\"rect\"==e&&4==n.length){var r=n[0],i=n[1];return p(r,i,n[2]-r,n[3]-i)}if(\"circle\"==e&&3==n.length){var o=n[0],a=n[1],u=n[2];return p(o-u,a-u,2*u,2*u)}if(\"poly\"==e&&2<n.length){for(var l=n[0],d=n[1],f=l,h=d,s=2;s+1<n.length;s+=2)l=Math.min(l,n[s]),f=Math.max(f,n[s]),d=Math.min(d,n[s+1]),h=Math.max(h,n[s+1]);return p(l,d,f-l,h-d)}return p(0,0,0,0)}function s(t){var e=t.tagName.toUpperCase(),n=\"MAP\"==e;if(!n&&\"AREA\"!=e)return null;var r=n?t:\"MAP\"==D(t).tagName.toUpperCase()?D(t):null,i=null,o=null;if(r&&r.name&&((i=r.ownerDocument.querySelector(\"*[usemap='#\"+r.name+\"']\"))&&(o=x(i),!n&&\"default\"!=t.shape.toLowerCase()))){var a=h(t),u=Math.min(Math.max(a.left,0),o.width),l=Math.min(Math.max(a.top,0),o.height),d=Math.min(a.width,o.width-u),f=Math.min(a.height,o.height-l);o=p(u+o.left,l+o.top,d,f)}return{image:i,rect:o||p(0,0,0,0)}}function c(t,e){for(t&&(t=D(t));t;){if(e(t))return t;t=D(t)}return null}function r(t){var e=t.parentNode;if(e&&e.shadowRoot&&t.assignedSlot!==undefined)return t.assignedSlot?t.assignedSlot.parentNode:null;if(t.getDestinationInsertionPoints){var n=t.getDestinationInsertionPoints();if(0<n.length)return n[n.length-1]}return e}var T={NONE:\"none\",HIDDEN:\"hidden\",SCROLL:\"scroll\"};return function i(t,e){function n(t){if(\"none\"==window.getComputedStyle(t).display)return!1;var e=r(t);if(\"function\"==typeof ShadowRoot&&e instanceof ShadowRoot){if(e.host.shadowRoot!==e)return!1;e=e.host}return!(!e||e.nodeType!=Node.DOCUMENT_NODE&&e.nodeType!=Node.DOCUMENT_FRAGMENT_NODE)||!(e&&e.tagName&&\"DETAILS\"==e.tagName.toUpperCase()&&!e.open&&\"SUMMARY\"!=t.tagName)&&(e&&n(e))}return d(t,!!e,n)}})()).apply(null, arguments)","args":[{"element-6066-11e4-a52e-4f735466cecf":"02c1b129-16d7-4bdb-800e-025e3722e6cd"}]}
2020-01-15 17:03:51 DEBUG Selenium > {"Accept"=>"application/json", "Content-Type"=>"application/json; charset=UTF-8", "User-Agent"=>"selenium/3.142.7 (ruby macosx)", "Content-Length"=>"5067"}
2020-01-15 17:03:52 INFO Selenium <- {"value":true}
2020-01-15 17:03:52 INFO Selenium -> POST session/30abd0f776af8fa12d653e2200d2a17f/element/02c1b129-16d7-4bdb-800e-025e3722e6cd/click
2020-01-15 17:03:52 INFO Selenium <- {"value":null}
2020-01-15 17:03:52 INFO Selenium -> GET session/30abd0f776af8fa12d653e2200d2a17f/window/handles
2020-01-15 17:03:52 INFO Selenium <- {"value":["CDwindow-61FEF6502E447E629D30BE154B80DA46","CDwindow-2E74DC181F162066BA659894C2664E99"]}
2020-01-15 17:03:52 INFO Selenium -> GET session/30abd0f776af8fa12d653e2200d2a17f/window
2020-01-15 17:03:52 INFO Selenium <- {"value":"CDwindow-61FEF6502E447E629D30BE154B80DA46"}
2020-01-15 17:03:52 INFO Selenium -> POST session/30abd0f776af8fa12d653e2200d2a17f/window
2020-01-15 17:03:52 INFO Selenium >>> http://127.0.0.1:9515/session/30abd0f776af8fa12d653e2200d2a17f/window | {"handle":"CDwindow-2E74DC181F162066BA659894C2664E99"}
2020-01-15 17:03:52 DEBUG Selenium > {"Accept"=>"application/json", "Content-Type"=>"application/json; charset=UTF-8", "User-Agent"=>"selenium/3.142.7 (ruby macosx)", "Content-Length"=>"54"}
/Users/ianvaughan/.asdf/installs/ruby/2.7.0/lib/ruby/gems/2.7.0/gems/activesupport-6.0.2.1/lib/active_support/messages/rotator.rb:28: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/Users/ianvaughan/.asdf/installs/ruby/2.7.0/lib/ruby/gems/2.7.0/gems/activesupport-6.0.2.1/lib/active_support/messages/rotator.rb:6: warning: The called method `initialize' is defined here
/Users/ianvaughan/.asdf/installs/ruby/2.7.0/lib/ruby/gems/2.7.0/gems/actionview-6.0.2.1/lib/action_view/view_paths.rb:11: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/Users/ianvaughan/.asdf/installs/ruby/2.7.0/lib/ruby/gems/2.7.0/gems/actionview-6.0.2.1/lib/action_view/lookup_context.rb:140: warning: The called method `template_exists?' is defined here
/Users/ianvaughan/.asdf/installs/ruby/2.7.0/lib/ruby/gems/2.7.0/gems/actionview-6.0.2.1/lib/action_view/unbound_template.rb:24: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/Users/ianvaughan/.asdf/installs/ruby/2.7.0/lib/ruby/gems/2.7.0/gems/actionview-6.0.2.1/lib/action_view/template.rb:130: warning: The called method `initialize' is defined here
/Users/ianvaughan/.asdf/installs/ruby/2.7.0/lib/ruby/gems/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/railties/collection_cache_association_loading.rb:7: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/Users/ianvaughan/.asdf/installs/ruby/2.7.0/lib/ruby/gems/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/railties/collection_cache_association_loading.rb:12: warning: The called method `relation_from_options' is defined here
2020-01-15 17:03:54 INFO Selenium <- {"value":null}
/Users/ianvaughan/.asdf/installs/ruby/2.7.0/lib/ruby/gems/2.7.0/gems/capybara-3.30.0/lib/capybara/node/matchers.rb:676: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/Users/ianvaughan/.asdf/installs/ruby/2.7.0/lib/ruby/gems/2.7.0/gems/capybara-3.30.0/lib/capybara/node/matchers.rb:852: warning: The called method `_verify_text' is defined here
2020-01-15 17:03:54 INFO Selenium -> POST session/30abd0f776af8fa12d653e2200d2a17f/elements
2020-01-15 17:03:54 INFO Selenium >>> http://127.0.0.1:9515/session/30abd0f776af8fa12d653e2200d2a17f/elements | {"using":"xpath","value":"/html"}
2020-01-15 17:03:54 DEBUG Selenium > {"Accept"=>"application/json", "Content-Type"=>"application/json; charset=UTF-8", "User-Agent"=>"selenium/3.142.7 (ruby macosx)", "Content-Length"=>"33"}
2020-01-15 17:03:54 INFO Selenium <- {"value":[{"element-6066-11e4-a52e-4f735466cecf":"ea47befb-8256-4d56-b4e0-327d6e6ace06"}]}
2020-01-15 17:03:54 INFO Selenium Using script for :isDisplayed
2020-01-15 17:03:54 INFO Selenium -> POST session/30abd0f776af8fa12d653e2200d2a17f/execute/sync
2020-01-15 17:03:54 INFO Selenium >>> http://127.0.0.1:9515/session/30abd0f776af8fa12d653e2200d2a17f/execute/sync | {"script":"return ((function(){function d(t,e,n){function r(t){var e=x(t);if(0<e.height&&0<e.width)return!0;if(\"PATH\"==t.tagName.toUpperCase()&&(0<e.height||0<e.width)){var n=window.getComputedStyle(t)[\"stroke-width\"];return!!n&&0<parseInt(n,10)}return\"hidden\"!=window.getComputedStyle(t).overflow&&Array.prototype.slice.call(t.childNodes).some(function(t){return t.nodeType==Node.TEXT_NODE||t.nodeType==Node.ELEMENT_NODE&&r(t)})}function i(t){return C(t)==T.HIDDEN&&Array.prototype.slice.call(t.childNodes).every(function(t){return t.nodeType!=Node.ELEMENT_NODE||i(t)||!r(t)})}var o=t.tagName.toUpperCase();if(\"BODY\"==o)return!0;if(\"OPTION\"==o||\"OPTGROUP\"==o){var a=c(t,function(t){return\"SELECT\"==t.tagName.toUpperCase()});return!!a&&d(a,!0,n)}var u=s(t);if(u)return!!u.image&&0<u.rect.width&&0<u.rect.height&&d(u.image,e,n);if(\"INPUT\"==o&&\"hidden\"==t.type.toLowerCase())return!1;if(\"NOSCRIPT\"==o)return!1;var l=window.getComputedStyle(t).visibility;return\"collapse\"!=l&&\"hidden\"!=l&&(!!n(t)&&(!(!e&&0==f(t))&&(!!r(t)&&!i(t))))}function E(t){var e=x(t);return{left:e.left,right:e.left+e.width,top:e.top,bottom:e.top+e.height}}function D(t){return t.parentElement}function C(t){function e(t){function e(t){if(t==u)return!0;var e=window.getComputedStyle(t),n=e.display;return 0!=n.indexOf(\"inline\")&&\"contents\"!=n&&(\"absolute\"!=r||\"static\"!=e.position)}var r=window.getComputedStyle(t).position;if(\"fixed\"==r)return i=!0,t==u?null:u;for(var n=D(t);n&&!e(n);)n=D(n);return n}function n(t){var e=t;if(\"visible\"==d)if(t==u&&l)e=l;else if(t==l)return{x:\"visible\",y:\"visible\"};var n=window.getComputedStyle(e),r={x:n[\"overflow-x\"],y:n[\"overflow-y\"]};return t==u&&(r.x=\"visible\"==r.x?\"auto\":r.x,r.y=\"visible\"==r.y?\"auto\":r.y),r}function r(t){return t==u?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop}}for(var i,o=E(t),a=t.ownerDocument,u=a.documentElement,l=a.body,d=window.getComputedStyle(u).overflow,f=e(t);f;f=e(f)){var h=n(f);if(\"visible\"!=h.x||\"visible\"!=h.y){var s=x(f);if(0==s.width||0==s.height)return T.HIDDEN;var p=o.right<s.left,c=o.bottom<s.top;if(p&&\"hidden\"==h.x||c&&\"hidden\"==h.y)return T.HIDDEN;if(p&&\"visible\"!=h.x||c&&\"visible\"!=h.y){var v=r(f),g=o.right<s.left-v.x,w=o.bottom<s.top-v.y;return g&&\"visible\"!=h.x||w&&\"visible\"!=h.x?T.HIDDEN:C(f)==T.HIDDEN?T.HIDDEN:T.SCROLL}var N=o.left>=s.left+s.width,m=o.top>=s.top+s.height;if(N&&\"hidden\"==h.x||m&&\"hidden\"==h.y)return T.HIDDEN;if(N&&\"visible\"!=h.x||m&&\"visible\"!=h.y){if(i){var y=r(f);if(o.left>=u.scrollWidth-y.x||o.right>=u.scrollHeight-y.y)return T.HIDDEN}return C(f)==T.HIDDEN?T.HIDDEN:T.SCROLL}}}return T.NONE}function o(t){var e=t.document.documentElement;return{width:e.clientWidth,height:e.clientHeight}}function p(t,e,n,r){return{left:t,top:e,width:n,height:r}}function x(t){var e,n=s(t);if(n)return n.rect;if(\"HTML\"==t.tagName.toUpperCase()){t.ownerDocument;var r=o(window);return p(0,0,r.width,r.height)}try{e=t.getBoundingClientRect()}catch(i){return p(0,0,0,0)}return p(e.left,e.top,e.right-e.left,e.bottom-e.top)}function f(t){var e=1,n=window.getComputedStyle(t).opacity;n&&(e=Number(n));var r=D(t);return r&&r.nodeType==Node.ELEMENT_NODE&&(e*=f(r)),e}function h(t){var e=t.shape.toLowerCase(),n=t.coords.split(\",\");if(\"rect\"==e&&4==n.length){var r=n[0],i=n[1];return p(r,i,n[2]-r,n[3]-i)}if(\"circle\"==e&&3==n.length){var o=n[0],a=n[1],u=n[2];return p(o-u,a-u,2*u,2*u)}if(\"poly\"==e&&2<n.length){for(var l=n[0],d=n[1],f=l,h=d,s=2;s+1<n.length;s+=2)l=Math.min(l,n[s]),f=Math.max(f,n[s]),d=Math.min(d,n[s+1]),h=Math.max(h,n[s+1]);return p(l,d,f-l,h-d)}return p(0,0,0,0)}function s(t){var e=t.tagName.toUpperCase(),n=\"MAP\"==e;if(!n&&\"AREA\"!=e)return null;var r=n?t:\"MAP\"==D(t).tagName.toUpperCase()?D(t):null,i=null,o=null;if(r&&r.name&&((i=r.ownerDocument.querySelector(\"*[usemap='#\"+r.name+\"']\"))&&(o=x(i),!n&&\"default\"!=t.shape.toLowerCase()))){var a=h(t),u=Math.min(Math.max(a.left,0),o.width),l=Math.min(Math.max(a.top,0),o.height),d=Math.min(a.width,o.width-u),f=Math.min(a.height,o.height-l);o=p(u+o.left,l+o.top,d,f)}return{image:i,rect:o||p(0,0,0,0)}}function c(t,e){for(t&&(t=D(t));t;){if(e(t))return t;t=D(t)}return null}function r(t){var e=t.parentNode;if(e&&e.shadowRoot&&t.assignedSlot!==undefined)return t.assignedSlot?t.assignedSlot.parentNode:null;if(t.getDestinationInsertionPoints){var n=t.getDestinationInsertionPoints();if(0<n.length)return n[n.length-1]}return e}var T={NONE:\"none\",HIDDEN:\"hidden\",SCROLL:\"scroll\"};return function i(t,e){function n(t){if(\"none\"==window.getComputedStyle(t).display)return!1;var e=r(t);if(\"function\"==typeof ShadowRoot&&e instanceof ShadowRoot){if(e.host.shadowRoot!==e)return!1;e=e.host}return!(!e||e.nodeType!=Node.DOCUMENT_NODE&&e.nodeType!=Node.DOCUMENT_FRAGMENT_NODE)||!(e&&e.tagName&&\"DETAILS\"==e.tagName.toUpperCase()&&!e.open&&\"SUMMARY\"!=t.tagName)&&(e&&n(e))}return d(t,!!e,n)}})()).apply(null, arguments)","args":[{"element-6066-11e4-a52e-4f735466cecf":"ea47befb-8256-4d56-b4e0-327d6e6ace06"}]}
2020-01-15 17:03:54 DEBUG Selenium > {"Accept"=>"application/json", "Content-Type"=>"application/json; charset=UTF-8", "User-Agent"=>"selenium/3.142.7 (ruby macosx)", "Content-Length"=>"5067"}
2020-01-15 17:03:54 INFO Selenium <- {"value":true}
2020-01-15 17:03:54 INFO Selenium -> GET session/30abd0f776af8fa12d653e2200d2a17f/element/ea47befb-8256-4d56-b4e0-327d6e6ace06/text
2020-01-15 17:03:54 INFO Selenium <- {"value":"Login\nNew Enquiry\n"}
2020-01-15 17:03:54 INFO Selenium -> POST session/30abd0f776af8fa12d653e2200d2a17f/window
2020-01-15 17:03:54 INFO Selenium >>> http://127.0.0.1:9515/session/30abd0f776af8fa12d653e2200d2a17f/window | {"handle":"CDwindow-61FEF6502E447E629D30BE154B80DA46"}
2020-01-15 17:03:54 DEBUG Selenium > {"Accept"=>"application/json", "Content-Type"=>"application/json; charset=UTF-8", "User-Agent"=>"selenium/3.142.7 (ruby macosx)", "Content-Length"=>"54"}
2020-01-15 17:03:54 INFO Selenium <- {"value":null}
*** Capybara end ***
2020-01-15 17:03:54 INFO Selenium -> GET session/30abd0f776af8fa12d653e2200d2a17f/window/handles
2020-01-15 17:03:54 INFO Selenium <- {"value":["CDwindow-61FEF6502E447E629D30BE154B80DA46","CDwindow-2E74DC181F162066BA659894C2664E99"]}
2020-01-15 17:03:54 INFO Selenium -> POST session/30abd0f776af8fa12d653e2200d2a17f/window
2020-01-15 17:03:54 INFO Selenium >>> http://127.0.0.1:9515/session/30abd0f776af8fa12d653e2200d2a17f/window | {"handle":"CDwindow-61FEF6502E447E629D30BE154B80DA46"}
2020-01-15 17:03:54 DEBUG Selenium > {"Accept"=>"application/json", "Content-Type"=>"application/json; charset=UTF-8", "User-Agent"=>"selenium/3.142.7 (ruby macosx)", "Content-Length"=>"54"}
2020-01-15 17:03:54 INFO Selenium <- {"value":null}
2020-01-15 17:03:54 INFO Selenium -> GET session/30abd0f776af8fa12d653e2200d2a17f/window/handles
2020-01-15 17:03:54 INFO Selenium <- {"value":["CDwindow-61FEF6502E447E629D30BE154B80DA46","CDwindow-2E74DC181F162066BA659894C2664E99"]}
2020-01-15 17:03:54 INFO Selenium -> GET session/30abd0f776af8fa12d653e2200d2a17f/window/handles
2020-01-15 17:03:54 INFO Selenium <- {"value":["CDwindow-61FEF6502E447E629D30BE154B80DA46","CDwindow-2E74DC181F162066BA659894C2664E99"]}
2020-01-15 17:03:54 INFO Selenium -> GET session/30abd0f776af8fa12d653e2200d2a17f/window
2020-01-15 17:03:54 INFO Selenium <- {"value":"CDwindow-61FEF6502E447E629D30BE154B80DA46"}
2020-01-15 17:03:54 INFO Selenium -> POST session/30abd0f776af8fa12d653e2200d2a17f/window
2020-01-15 17:03:54 INFO Selenium >>> http://127.0.0.1:9515/session/30abd0f776af8fa12d653e2200d2a17f/window | {"handle":"CDwindow-2E74DC181F162066BA659894C2664E99"}
2020-01-15 17:03:54 DEBUG Selenium > {"Accept"=>"application/json", "Content-Type"=>"application/json; charset=UTF-8", "User-Agent"=>"selenium/3.142.7 (ruby macosx)", "Content-Length"=>"54"}
2020-01-15 17:03:54 INFO Selenium <- {"value":null}
2020-01-15 17:03:54 INFO Selenium -> DELETE session/30abd0f776af8fa12d653e2200d2a17f/window
2020-01-15 17:03:54 INFO Selenium <- {"value":["CDwindow-61FEF6502E447E629D30BE154B80DA46"]}
2020-01-15 17:03:54 INFO Selenium -> POST session/30abd0f776af8fa12d653e2200d2a17f/window
2020-01-15 17:03:54 INFO Selenium >>> http://127.0.0.1:9515/session/30abd0f776af8fa12d653e2200d2a17f/window | {"handle":"CDwindow-61FEF6502E447E629D30BE154B80DA46"}
2020-01-15 17:03:54 DEBUG Selenium > {"Accept"=>"application/json", "Content-Type"=>"application/json; charset=UTF-8", "User-Agent"=>"selenium/3.142.7 (ruby macosx)", "Content-Length"=>"54"}
2020-01-15 17:03:54 INFO Selenium <- {"value":null}
2020-01-15 17:03:54 INFO Selenium -> POST session/30abd0f776af8fa12d653e2200d2a17f/url
2020-01-15 17:03:54 INFO Selenium >>> http://127.0.0.1:9515/session/30abd0f776af8fa12d653e2200d2a17f/url | {"url":"about:blank"}
2020-01-15 17:03:54 DEBUG Selenium > {"Accept"=>"application/json", "Content-Type"=>"application/json; charset=UTF-8", "User-Agent"=>"selenium/3.142.7 (ruby macosx)", "Content-Length"=>"21"}
2020-01-15 17:03:54 INFO Selenium <- {"value":null}
2020-01-15 17:03:54 INFO Selenium -> POST session/30abd0f776af8fa12d653e2200d2a17f/elements
2020-01-15 17:03:54 INFO Selenium >>> http://127.0.0.1:9515/session/30abd0f776af8fa12d653e2200d2a17f/elements | {"using":"xpath","value":"/html/body/*"}
2020-01-15 17:03:54 DEBUG Selenium > {"Accept"=>"application/json", "Content-Type"=>"application/json; charset=UTF-8", "User-Agent"=>"selenium/3.142.7 (ruby macosx)", "Content-Length"=>"40"}
2020-01-15 17:03:54 INFO Selenium <- {"value":[]}
/Users/ianvaughan/.asdf/installs/ruby/2.7.0/lib/ruby/gems/2.7.0/gems/capybara-3.30.0/lib/capybara/selenium/driver_specializations/chrome_driver.rb:99: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/Users/ianvaughan/.asdf/installs/ruby/2.7.0/lib/ruby/gems/2.7.0/gems/selenium-webdriver-3.142.7/lib/selenium/webdriver/chrome/driver.rb:59: warning: The called method `execute_cdp' is defined here
2020-01-15 17:03:54 INFO Selenium -> POST session/30abd0f776af8fa12d653e2200d2a17f/goog/cdp/execute
2020-01-15 17:03:54 INFO Selenium >>> http://127.0.0.1:9515/session/30abd0f776af8fa12d653e2200d2a17f/goog/cdp/execute | {"cmd":"Storage.clearDataForOrigin","params":{"origin":"*","storageTypes":"cookies,local_storage"}}
2020-01-15 17:03:54 DEBUG Selenium > {"Accept"=>"application/json", "Content-Type"=>"application/json; charset=UTF-8", "User-Agent"=>"selenium/3.142.7 (ruby macosx)", "Content-Length"=>"99"}
2020-01-15 17:03:55 INFO Selenium <- {"value":{}}
Visits home page to signup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment