<?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 Alexei Vinogradov on Medium]]></title>
        <description><![CDATA[Stories by Alexei Vinogradov on Medium]]></description>
        <link>https://medium.com/@alexeivinogradov?source=rss-174b437e1bc6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*ba2uOU7u10WmEZCE.</url>
            <title>Stories by Alexei Vinogradov on Medium</title>
            <link>https://medium.com/@alexeivinogradov?source=rss-174b437e1bc6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 04:58:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@alexeivinogradov/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[A Really Quick Start with Selenide]]></title>
            <link>https://medium.com/@alexeivinogradov/a-really-quick-start-with-selenide-1ab54ec7bdc5?source=rss-174b437e1bc6------2</link>
            <guid isPermaLink="false">https://medium.com/p/1ab54ec7bdc5</guid>
            <category><![CDATA[selenide]]></category>
            <category><![CDATA[quality-assurance]]></category>
            <category><![CDATA[testing]]></category>
            <dc:creator><![CDATA[Alexei Vinogradov]]></dc:creator>
            <pubDate>Mon, 29 Dec 2014 21:06:35 GMT</pubDate>
            <atom:updated>2016-05-07T23:19:28.124Z</atom:updated>
            <content:encoded><![CDATA[<p>This year I’ve learned <a href="http://selenide.org/index.html">Selenide</a>, the Selenium WebDriver based framework that helps you to write compact and concise automation code in java. I’ve talked to Andrei Solntsev who is the author of the framework and watched some of his talks, realizing deep understanding of testing and development processes from the Selenide developers. So let’s just use it!</p><p>Wait a moment, there is a litte problem. If you visit “Quick Start” section of the site, you will get some code snippet suggesting, you should use on of the advanced development tools like maven, gradle or ivy. Is it really a must? Not at all! To get started and write effective test with Selenide you need only the basics of test automations: Java, Eclipse and a bit of Selenium. Do you have spare 5–10 minutes? It’s enough, just have a look.</p><p>We will need:</p><ol><li>Download the latest version Selenium Client for Java (<a href="http://www.seleniumhq.org/download/">http://www.seleniumhq.org/download/</a> ) and selenide.jar ( find the latest <a href="http://search.maven.org/#search%7Cga%7C1%7Cselenide">http://search.maven.org/#search%7Cga%7C1%7Cselenide</a> and download .jar).<br> <strong>Update (a bit quicker): instead of Selenium Client for Java download Selenium Server — selenium-server-standalone-x.y.z.jar ~35Mb</strong></li><li>Start Eclipse and create new Java Project (File-&gt;New-&gt;Java Project). Enter project name e.g. SelenideQuickStart. Press Finish.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/817/0*fMcyolGQF9s9C3No.png" /></figure><ol><li>Unpack selenium-java-x.y.z.zip and add all jars (selenium-java-x.y.z.jar, and content of lib folder), as well as selenide-x.y.jar to the project (Project Properties -&gt; Java Build Path -&gt; Libraries).</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9JrhW9GVPmffaDNc.png" /></figure><ol><li><strong>Update. If you downloaded selenium-server-standalone-x.y.z.jar, just add it instead of the Selenium Client for Java, to have the list much shorter:</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*TvV9pwdCLcr7H0fw.png" /></figure><ol><li><strong>Server edition of Selenium (.jar) contains fully unpacked jar-files of the client edition along with additional classes &amp; packages, it is sometime more difficult to resolve conflicts with third-party libraries, if you testing project needs them. Fortunately, testing projects rarely depend on the other third-party jars, so it should be not a problem for automation.</strong></li><li>Create JUnit test (File-&gt;New&gt;JUnit Test Case). Choose JUnit Test 4, enter package, e.g. com.selenide.quickstart and the test class name, e.g. GoogleTest. Press Finish.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/901/0*HZwJud2-6PIuJuMI.png" /></figure><ol><li>Agree to add JUnit 4 to the project.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5e4BvJFFqYD_5me-.png" /></figure><ol><li>Exchange the standard test code for the following. This test enters “selenide” into Google search field, compares the results and takes a screenshot of the result page.</li><li>packagecom.selenide.quickstart;</li><li>// import Selenide Classes</li><li>import staticcom.codeborne.selenide.Condition.*;</li><li>import staticcom.codeborne.selenide.Selenide.*;</li><li>import org.junit.Test;</li><li>import org.openqa.selenium.By;</li><li>publicclassGoogleTest</li><li>@Test</li><li>publicvoidsearchGoogle()</li><li>// open google start page</li><li>open(“http://google.com&quot;);</li><li>// enter “selenide” in the search field (CSS Selector q)</li><li>// and press Enter</li><li>$(By.name(“q”)).val(“selenide”)</li><li>.pressEnter();</li><li>// first element should be visible</li><li>// and contain the following text</li><li>$(“#ires li.g”).shouldBe(visible)</li><li>.shouldHave(text(“Selenide: concise UI tests in Java”));</li><li>// makes screenshot of the result’s page</li><li>screenshot(“google_results”);</li><li>We are done! Start test (as JUnit Test) Run-&gt;Run. The Firefox browser opens for a few seconds and runs the test. Look at the result:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Zpk0EOQ64EJ1CHOI.jpg" /></figure><ol><li>Let’s find the screenshot. Selenide saves png-image and html-page in the folder build/reports/tests. You can open it e.g. in Navigator (Window-&gt;Show View-&gt;Navigator). Sometime you need to refresh the view with F5 (or File-&gt;Refresh).</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/0*2iKbmN1fdVxqoegN.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/0*PT3D3x7T7fFunJDr.png" /></figure><p>Voilà</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/15/0*AWSDNcgJCaKdiL7v.gif" /></figure><p>We have written he working test with Selenide within a few minutes, avoiding learning the deepth of the developers’ frameworks.</p><p>Got curios? Watch the <a href="http://blog.vinogradov-it.de/2014/12/a-really-quick-start-with-selenide/vimeo.com/78251994">video from the authors</a> (1 hour) to learn the advanced features of the Selenide.</p><p>Or do you want to quickly write concise Selenium based tests without any IDE? Subscribe to my blog, I am going to write about it soon!</p><p><em>Originally published at </em><a href="http://blog.vinogradov-it.de/2014/12/a-really-quick-start-with-selenide/"><em>blog.vinogradov-it.de</em></a><em> on December 29, 2014.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1ab54ec7bdc5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>