title: Cucumber test redirect url against another url
body: <p>I am writing Cucumber tests.</p>
  
  <p>In my code when clicking a button the button redirects to another page. The url for that page will always be the same. how do i get the current URL from the cucumber test? I tried</p>
  
  <pre><code>if (driver.getCurrentUrl() === http://localhost:8080/testURL){
        console.log("some output");
  } 
  </code></pre>
  
  <p>but it doesnt work.</p>
  
  <p>Any help is appreciated </p>