Diziana
- Total activity 285
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 26
- Subscriptions 146
Articles
Recent activity by Diziana Sort by recent activity-
Producing the Right Feedback When Failing
In this chapter, we are going to have a look at how we can make life easier for you when tests start failing. We will: Discuss where our tests should live and examine why Have a look at test...
-
Summary
After reading through this chapter, you should: Be able to set up a basic project using Maven to download your dependencies, configure your class path, and build your code. Know what advanta...
-
Going headless
Going headless seems to be all the rage these days, so let's have a look at how we can add GhostDriver into the mix. We already have pretty much all of the code we need, so this is just going to...
-
This is where we have been slightly clever
Selenium will use automatically to nd the location of the driver binaries. This means that we don't need to add any additional code to make things work. We now need to create a RepositoryMap.xml...
-
The plugin runs in the TEST_COMPILE phase by default.
The plugin runs in the TEST_COMPILE phase by default. The order in which it is placed in the POM should not matter, as there shouldn't be any tests actually running in this phase. The new overwi...
-
Downloading the WebDriver binaries automatically
I came across this problem a few years ago, and at the time there wasn't an easy way to get hold of the binaries using Maven. So I did what anybody who is into open source software would do: I w...
-
Let's try it out. First of all, let's check that everything still works like it used to:
mvn clean install –Dthreads=2 This time you should have seen no difference from the last time you ran it. Let's check the error handling next: mvn clean install –Dthreads=2 –Dbrowser=iJustMadeT...
-
We have then written a couple of new methods.
The method called instantiateWebDriver() is basically the code that was previously inside getDriver(). We have just moved it out to isolate the function of actually instantiating a WebDriver obj...
-
There is quite a lot going on here. First of all, we have added some new variables:
One to read in the browser that we have specified One to set a default browser type, in case one has not been specified for any reason One to hold the type of driver that is going to be us...
-
There are no silver bullets
As with everything, keeping your browser windows open while you run all of your tests will not work in every instance. If you use InternetExplorerDriver, you will probably nd when using sligh...