<?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 Luigi Di Natale on Medium]]></title>
        <description><![CDATA[Stories by Luigi Di Natale on Medium]]></description>
        <link>https://medium.com/@ldinatale?source=rss-a9302a70a1a0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*r4CTk53KIYXjgV7O.jpg</url>
            <title>Stories by Luigi Di Natale on Medium</title>
            <link>https://medium.com/@ldinatale?source=rss-a9302a70a1a0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 05:59:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ldinatale/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[New Career, Same Company]]></title>
            <link>https://medium.com/@ldinatale/new-career-same-company-20b961918542?source=rss-a9302a70a1a0------2</link>
            <guid isPermaLink="false">https://medium.com/p/20b961918542</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[swift]]></category>
            <dc:creator><![CDATA[Luigi Di Natale]]></dc:creator>
            <pubDate>Mon, 18 Jul 2016 03:12:00 GMT</pubDate>
            <atom:updated>2016-07-21T14:56:02.594Z</atom:updated>
            <content:encoded><![CDATA[<p>As some of you may already know, I have worked as a QA Engineer for about a year and a half at Mobiquity. Through my time in the QA department, I was able to learn the development process and experiment with different coding languages. I dabbled in some Java, Javascript, Ruby, Objective-C, and Swift. Of those languages, Swift was definitely the most fun language for me to code in. Since deciding that Swift is my language of choice, I was determined to steer my career in that path. Here I am just a few months after making that decision in my second OnRamp here at Mobiquity… learning iOS development instead of QA. I am extremely happy and proud to have been given the opportunity to advance my career in the direction that I wanted to, without needing to switch companies!</p><p>So far this week has been a review for me, as this week is the same first week as the QA OnRamp. However, it was good to freshen up on git, since I didn’t use it very often as a QA Engineer. The most interesting thing I learned this week was how to do a rebase. Rebasing was always extremely confusing for me for some reason. No matter how many times someone explained it to me, I couldn’t seem to grasp it. Now, I feel like I have a much better idea of rebasing and what it actually does!</p><p>I’m definitely most excited to learn more about Swift during this OnRamp. I’m excited to get cracking on our team project and I look forward to working with my other MobElephant colleagues on the mCoin project! I truly think that’s where the majority of the learning for us will come from. It will give me an opportunity to get a better feel for the day to day of a developer and collaborate closely with the intelligent people I am surrounded by in this class.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=20b961918542" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Test Websites Using Selenium and WebStorm]]></title>
            <link>https://medium.com/@ldinatale/how-to-test-websites-using-selenium-and-webstorm-b98406b5412?source=rss-a9302a70a1a0------2</link>
            <guid isPermaLink="false">https://medium.com/p/b98406b5412</guid>
            <category><![CDATA[selenium]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[qa]]></category>
            <category><![CDATA[quality-assurance]]></category>
            <dc:creator><![CDATA[Luigi Di Natale]]></dc:creator>
            <pubDate>Fri, 19 Dec 2014 22:28:48 GMT</pubDate>
            <atom:updated>2016-06-24T13:19:44.393Z</atom:updated>
            <content:encoded><![CDATA[<p>Before you can actually step into the realm of testing websites you have to lay down the ground work.</p><p>Pre-requisites — things you need installed beforehand:<br>- node<br>- wd libary<br>- WebStorm<br>- mocha</p><p>Once you’ve gotten your project set up on your computer and you are at your project’s directory in your terminal and have typed “npm install” we can begin!</p><p>Go ahead and open your project in WebStorm. You should have a folder within your project called tests. This folder will hold subfolders for the different kinds of tests you are doing. For example, you will have a folder called “functional” to hold all of your functional scripts. That being said, the directory would look something like this:<br>“{PROJECT}/tests/functional”</p><p>This functional folder is where we are going to create our javascript files. For the sake of this blog I’m going to use Google as my example.</p><p>Create a new file in your functional folder called “Search.js”.</p><p>The first thing we want to do is write our require for the wd library as well as some necessary variables.</p><pre>var <em>wd </em>= require(&quot;wd&quot;);</pre><pre>var <em>host </em>= &quot;localhost&quot;;<br>var <em>port </em>= &quot;4444&quot;;<br>var <em>browser </em>= <em>wd</em>.promiseChainRemote(<em>host</em>, <em>port</em>);</pre><pre>var <em>caps </em>= {<br>   name: &quot;Testing google searching&quot;,<br>   browserName: &quot;chrome&quot;<br>}</pre><p>Now we can create our describe:</p><pre>describe(&quot;person&quot;, function() {<br>})</pre><p>Before we start creating its, we need to tell the code to open the browser before anything else is run. We do this by using a before function.</p><pre>before(function(done) {<br>   <em>browser</em>.init(<em>caps</em>).nodeify(done);<br>})</pre><p>The time has finally arrived…we can now begin writing our actual test!<br>We want to start by creating an it function:</p><pre>it(&quot;Can person open google.com and search for reddit&quot;, function(done) {<br>}</pre><p>All of your work for this test will be nested into the it function. So as you can see in our description of the it, we are going to try to open google.com and then search google for “reddit”.</p><p>We are going to get to google.com by using a .get function. You want to become very familiar with the different wd functions. I suggest you read and learn to love the wd documentation (<a href="https://github.com/admc/wd/blob/master/doc/api.md">https://github.com/admc/wd/blob/master/doc/api.md</a>).</p><p>So within that documentation there is a .get function. Within it we need to call google.com:</p><pre>it(&quot;Can open open google homepage&quot;, function(done) {<br>   <em>browser</em>.get(&quot;http://www.google.com&quot;, function(err) {<br>      if(err){<br>         done(err)<br>      }<br>      else {<br>         done();<br>      }<br>   })<br>})</pre><p>at this point, running this test will open our browser and go to <a href="http://www.google.com./">http://www.google.com.</a></p><p>You can run your test by typing “mocha Search.js” in your terminal.</p><p>Cool right? We’re making progress! Now for the tricky part. We want to search google for the word “reddit”. How are we going to tell the code to type specifically in the search box? Well, we do this by using our built in DevTools on Google Chrome. Go to google.com on a separate window, right click on the search box and click “Inspect Element”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m9JpC_GUzXybumpXe2LPaQ.png" /></figure><p>You should be seeing something similar to what the picture shows above. So we need to tell our code to wait for the search box element…but first we need to figure out the CSS Selector for the search box. As you can see in the DevTools, the searchbox is assigned to a class called “gbqfq”. So our code needs to wait until this class has loaded on the page before it continues. Looking at our wd documentation, we see a function called .waitForElementByCss.</p><p>Within our error catching if else statement, we could use the .type function to tell our script to type into the element we are looking at.</p><p>Now our it statement should look something like this:</p><pre>it(&quot;Can open open google homepage&quot;, function(done) {<br>   <em>browser</em>.get(&quot;http://www.google.com&quot;, function(err) {<br>      if(err){<br>         done(err)<br>      }<br>      else {<br>         <em>browser</em>.waitForElementByCss(&quot;#gbqfq&quot;, <em>asserter</em>.isDisplayed, 10000, 1000, function(err, inputBox) {<br>            if(err) {<br>               done(err);<br>            }<br>            else {<br>               inputBox.type(&quot;Reddit&quot;, function(err) {<br>                  if(err) {<br>                     done(err);<br>                  }<br>                  else {<br>                     done();<br>                  }<br>               })<br>            }<br>         })<br>      }<br>   })<br>})</pre><p>**NOTE** I’m not using promises for this example, this is why everything is going to be extremely nested in each else statement.</p><p>Okay great! So now if we run that, it will first open google chrome and go to <a href="http://www.google.com/">http://www.google.com</a> and then it will type “reddit” into the search box. So far so good!</p><p>So there we have it! You just wrote a test that you can use to make sure google works correctly! You can even take it farther and verify that your test actually typed what you wanted and you could even verify that your results were what you expected!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b98406b5412" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>