<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Marie Carter on Medium]]></title>
        <description><![CDATA[Stories by Marie Carter on Medium]]></description>
        <link>https://medium.com/@marievcarter?source=rss-ef4266e560e9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*RDSpQHyGdLZf4MV9qAXK3w.jpeg</url>
            <title>Stories by Marie Carter on Medium</title>
            <link>https://medium.com/@marievcarter?source=rss-ef4266e560e9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 06:18:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@marievcarter/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Getting Started With Selenium]]></title>
            <link>https://medium.com/@marievcarter/getting-started-with-selenium-38796c35cd6b?source=rss-ef4266e560e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/38796c35cd6b</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[selenium-webdriver]]></category>
            <category><![CDATA[selenium]]></category>
            <category><![CDATA[automated-testing]]></category>
            <category><![CDATA[browser-testing]]></category>
            <dc:creator><![CDATA[Marie Carter]]></dc:creator>
            <pubDate>Mon, 28 Jan 2019 00:46:03 GMT</pubDate>
            <atom:updated>2019-02-17T04:06:25.272Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2-BoHqZ8-CG3gdLiWIeqzw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@nicolasthomas">Nicolas Thomas</a> on Unsplash</figcaption></figure><p>Selenium is a framework for testing websites. It allows you to write scripts that will open, navigate to, and click through a website and observe how it responds in an automated way. There are a few different selenium products, but we’ll be using selenium web driver in this guide. Selenium works with a number of languages including Java, Ruby and Javascript. The examples in this guide will be in Python.</p><p>Selenium is great because it gives an incredible amount of control over what you can test in the browser and is available in a wide array of languages. However, it requires a knowledge of one of the supported languages and requires an upfront cost of writing a customized testing script that may need to be changed if the site itself changes.</p><p><strong>Topics covered</strong></p><ol><li>Installation and setup</li><li>Choosing a web driver and navigating to pages</li><li>Identifying and interacting with elements on the page</li><li>Using waits</li><li>Closing and quitting the browser</li></ol><p><strong>Setup</strong></p><p>Download Selenium:<br>pip install selenium</p><p><strong>Web drivers and navigation</strong></p><p>You will need to import a web driver for the browser or browsers you wish to test on. Selenium has drivers available for Chrome, Firefox, Internet Explorer and Safari. The examples below use ChromeDriver.</p><p>To start the web driver, import webdriver from your previously installed selenium package and declare a driver for your chosen browser. To navigate to your website, use driver.get().</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a1b24ae34a1809a3ad71a69bfa2b1ff9/href">https://medium.com/media/a1b24ae34a1809a3ad71a69bfa2b1ff9/href</a></iframe><p><strong>Find and interact with page elements</strong></p><p>Selenium provides a number of ways to find elements on the page. Element ID, a link’s text, class, x-path and more can be used to elements in order to perform actions such as clicks or populating form fields.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ec6c4864c101ba23b3db9cb9ce4609d4/href">https://medium.com/media/ec6c4864c101ba23b3db9cb9ce4609d4/href</a></iframe><p><strong>Waits</strong></p><p>Often we need a way to stall the program while the page loads, otherwise the program will fail when it can’t find the next element it acts on. Using web driver waits, you can have the program pause and watch for an element to appear for a certain amount of time.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/77b8e177e21a4c598fc88d7b519b6bc5/href">https://medium.com/media/77b8e177e21a4c598fc88d7b519b6bc5/href</a></iframe><p>When your script is done running, you can either close the driver or quit the driver. Closing will close the browser but not the WebDriver background process. Quitting will kill the process.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d4b89132a1454bd250ba76f74cd26cc6/href">https://medium.com/media/d4b89132a1454bd250ba76f74cd26cc6/href</a></iframe><p>Before I understood the difference, I was confused by the multiple instances of chrome still running in the background.</p><p><strong>Resources</strong></p><p>1. <a href="https://www.seleniumhq.org/">https://www.seleniumhq.org/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=38796c35cd6b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>