Posted on December 21, 2018Categories Quality Assurance, TechnologyTags , , , , 8 Comments on Selenium IDE if element exists

Selenium IDE if element exists

Did you know you can tell Selenium IDE to execute certain commands only if a specific element exists on the page? The if element exists trick makes your web app testing scripts far more interesting. Here is a quick example using Selenium IDE 3 — the “new” Selenium IDE. Log out a standard user In this use case a WordPress multisite standard user is logged in. We can only execute our commands if we are a super admin. When trying … Continue reading “Selenium IDE if element exists”

Posted on February 14, 2018Categories JavaScript, Quality Assurance, TechnologyTags , , , , , 1 Comment on WebdriverIO and Mocha For Better Test Reports

WebdriverIO and Mocha For Better Test Reports

In a continuing series on using WebdriverIO with Selenium we are going to focus on getting better reporting output now that our environment is setup.  The previous article on setting up WebdriverIO should have you up-and-running with basic tests.   Now it is time to use some of that “Mocha flavoring” to get useful reports out of our tests.   WebdriverIO and Mocha gives you the tools to group together tests and report the results in plain text. Adding Mocha to a … Continue reading “WebdriverIO and Mocha For Better Test Reports”

Posted on January 5, 2018Categories Development, Plugin Development, Programming Languages, Technology, WordPressTags , , , , , , , , , , , , , , 1 Comment on Automated Web App Testing With phpStorm

Automated Web App Testing With phpStorm

Selenium IDE was a great way to handle automated web app testing like the Store Locator Plus plugins for WordPress.    Selenium IDE is a simple script recorder and playback too that runs on Firefox.    Or, I should say, it used to run on Firefox.  That broke in 2017 when Firefox 52 came out. After a lot of research I finally found a viable alternative to Selenium IDE that will work with modern browsers.  It is also free, locally … Continue reading “Automated Web App Testing With phpStorm”

Posted on September 26, 2017Categories JavaScript, Programming Languages, Quality Assurance, TechnologyTags , , , , ,   Leave a comment on JavaScript Selenium Newb Cheat Sheet

JavaScript Selenium Newb Cheat Sheet

Finding documentation on Selenium is hard enough for the “main languages” of Java or Python.    There are lots of examples of how to do things there in those languages but very little for the JavaScript libraries.   While you can translate most of the Java example to JavaScript there are some differences.    You’ll also find that there is a LOT of outdated information.    To make things more interesting you’ll also find that the older the example the … Continue reading “JavaScript Selenium Newb Cheat Sheet”

Posted on September 24, 2017Categories JavaScript, Programming Languages, Quality Assurance, TechnologyTags , , , ,   Leave a comment on Selenium Web App Test: Are My Web Parts There?

Selenium Web App Test: Are My Web Parts There?

As per my previous articles, I am building new test cases using Selenium as a replacement for my older Selenium IDE tests.  Selenium IDE is no longer supported by Firefox 55+ and the next generation doesn’t appear as though it will be ready any time soon.  If you are going to continue testing your web apps with Selenium, now is the time to learn Webdriver. This is a continuation of the Selenium automated web testing series.   You can  use … Continue reading “Selenium Web App Test: Are My Web Parts There?”

Posted on September 22, 2017Categories Quality AssuranceTags , , , , , , , , , ,   Leave a comment on A Simple Selenium Script Example Using JavaScript and Safari

A Simple Selenium Script Example Using JavaScript and Safari

In my previous articles I showed how to enable Safari for web automation (hint: developer menu Allow Remote Automation) and how to get your Node.js environment setup on MacOS to begin writing automated web application scripts.    This example is a very basic script to show how to perform a basic web page load (the MySLP site in this case) with some parameter passing that can be expanded in later examples. Enironment Preparation My test environment is running on MacOS … Continue reading “A Simple Selenium Script Example Using JavaScript and Safari”

Posted on September 21, 2017Categories Programming Languages, Quality AssuranceTags , , , , , , 5 Comments on Testing Web Apps With Selenium and JavaScript

Testing Web Apps With Selenium and JavaScript

It turns out I’ve been making the setup of Selenium 2 (Selenium Server + Webdriver) far too complicated.   As noted in my prior article, getting the client side of the equation setup with Safari is as simple as going to the developer menu and selecting “Allow Remote Automation”. The server side of things is almost as easy.  I’ve opted to build my tests in JavaScript since that is the “way of the web app world” these days and because … Continue reading “Testing Web Apps With Selenium and JavaScript”