Read out browser console logs in java with selenium 2.53.1

Sometimes the usual test log and screenshot is not enough to find the reason of the failed test case. Especially when the test case occasionally fails in special circumstances and it is really hard to reproduce. For this reason, we need to collect for each fail as much information as possible. One possible source of information is the console output of the browser.

Read more
Running webdriver code in JMeter

With the improvements in technology more and more of the business logic gets executed on the client side and it’s not easy to get a clear picture of the perceivable performance by using pure JMeter tests only. To extend these measurements JMeter-Webdriver plugin in JMeter can be handy to run WebDriver tests using actual browsers […]

Read more
Wedbriver wait for ajax to finish and JQuery animation

JQuery’s ajax calls can make an automated tester’s life miserable if you don’t know how to handle them. The quickest way to handle all of the Jquery ajax calls is to wait for the jQuery.active property to be null. We can easily construct a sample code trough the JavasscriptExecutor class.It sends out JavaScript code which […]

Read more
Some thoughts about the infamous StaleElementReferenceException

With the widespread of JavaScript we more and more met with one of our favourite exception which is the StaleElementReferenceException. It can be tricky because it does not have to appear on the test development machine. This issue can hide in the test code and appear in unexpected situations. The exception happens when the dom […]

Read more
Navigating between browser windows with WD

Hello, I’ll continue more about testing with JavaScript WD test frame and Selenium stand-alone server. Today’s topic is navigating between browser windows (or tabs) with WD. The Webdriver sees each tab and window as a window, it doesn’t make difference. The difference is only at the browser how it is set to handle the windows […]

Read more
Webdriver using javascript expressions in Browser Console

Today I will write about javascript expressions executing in browser consoles during testsing. Sometimes you need to inject some javascript code into the web page, for additional testing, additional features or by client request. In some cases a simple console.log() could do the trick, but sometimes it is not enough , especially when you use […]

Read more