{"componentChunkName":"component---src-templates-blog-post-js","path":"/blog/selenium/using-selenium-to-navigate-to-a-url/","result":{"data":{"site":{"siteMetadata":{"title":"Be Brav3"}},"markdownRemark":{"id":"ab8a8e41-5c9b-561c-86c4-f83fc505c49e","excerpt":"Below is a code sample instructing Selenium to navigate to a URL java // A basic Selenium file to open a web page in Firefox package net.brav3.webdriver.A…","html":"<p>Below is a code sample instructing Selenium to navigate to a URL</p>\n<p>[java]</p>\n<p>// A basic Selenium file to open a web page in Firefox</p>\n<p>package net.brav3.webdriver.A1;</p>\n<p>import org.openqa.selenium.WebDriver;</p>\n<p>import org.openqa.selenium.firefox.FirefoxDriver;</p>\n<p>public class NavigateToAUrl {\n<br>\npublic static void main(String[] args) {\n<br>\nWebDriver driver = new FirefoxDriver();\n<br>\ndriver.get(”<a href=\"https://developer.mozilla.org%22\">https://developer.mozilla.org”</a>);\n<br>\n}</p>\n<p>}</p>\n<p>[/java]</p>\n<p>We create a WebDriver object for Firefox. Then we use the driver to instruct Firefox to load the URL via the get method.</p>","frontmatter":{"title":"Using Selenium to Navigate to a URL","date":"March 08, 2016","description":null}}},"pageContext":{"slug":"/blog/selenium/using-selenium-to-navigate-to-a-url/","previous":{"fields":{"slug":"/blog/freecodecamp/frontend/html/fcc-challenge-22-nest-an-anchor-element-within-a-paragraph/"},"frontmatter":{"title":"FCC Challenge 22: Nest an Anchor Element within a Paragraph"}},"next":{"fields":{"slug":"/blog/freecodecamp/frontend/html/fcc-challenge-23-make-dead-links-using-the-hash-symbol/"},"frontmatter":{"title":"FCC Challenge 23: Make Dead Links using the Hash Symbol"}}}}}