Filed under Test Automation.

We are already in the new year, and we have greater hopes and expectations comparing to the previous one.

There is no better time to start thinking of your personal development and setting up new goals for 2017.

Here is a list of online testing courses that’ll help you develop in new areas, improve your testing skill and be more effective and efficient at your daily job:

The online video courses are provided by LoadFocus Courses platform.

Filed under Test Automation.

While testing different applications you will get to the need of testing the following scenario:

The user is opening the application, clicks the Overview button which sends the application
to background and reopens the application by choosing it from the recent used application.

To be able to do that you need to know how to implement two important actions:
1. Click the Overview button which send the application to background; for doing this you can use the following
code snippet written in Java:

    public void clickOverviewButton(){
		((AndroidDriver<WebElement>)driver).pressKeyCode(AndroidKeyCode.KEYCODE_APP_SWITCH);
	}

Hope this helps with your daily testing tasks. Details on how to use the Overview, Home and Back buttons in Appium for Android

Filed under Selenium WebDriver, Test Automation.

We’re pulling back the curtain on how we came with the idea for what we consider “The Ultimate Selenium WebDriver Testing & Hands-on Guide”

In the previous two years we’ve managed to post dozens of interesting new articles on our blog http://loadfocus.com/blog, and the increasing number of visitors prove that we are creating compelling and quality content.

Our main area of focus are testing articles on how to use Selenium WebDriver, Apache JMeter, LoadFocus and other testing tips and tricks.

 

Some of our most successful articles are listed below:

 

At the beginning, we were trying to promote LoadFocus as a Cloud Testing Framework, but our marketing efforts were failing, and nobody was actually visiting our website or signing up for our cloud service.

Then we stepped back and thought we really need to think about what can we do to drive more traffic to our blog and service.

So we started creating blog post with interesting, complete and quality content related to Automated Functional Testing with Selenium WebDriver. We also created our own Automated Website Testing service provided by LoadFocus.

We’ve added a list of how to’s articles on how to locate elements with Selenium WebDriver, how to take a screenshot with Selenium WebDriver, how to wait for an web element with Selenium WebDriver, how to select a dropdown, how to use explicit and implicit waits and timeouts and more other interesting topics.

The only difference is that all the articles we’ve written come from our own pain points, and we’ve trying to provide the FULL information related to the topic, with no need to go anywhere else to search for an answer to your questions. Working examples are present in most of our blog posts and we update them once we get a new update.

So, in the past couple of weeks, we came with the idea, to create our own Online Course – “The Ultimate Selenium WebDriver Testing & Hands-on Guide”. We like to call it “Ultimate”, since we believe it’s going to be something different from what’s there on the market, something easier and faster for you to learn. Instead of watching 100 or 200 hours of Online Courses, we try to compress ours in just 5 hours.

We created the Online Course presentation page, and we decided on the most important things to get discussed and we’ve generated our first curriculum.

Hope you’ll enjoy it, and have a look at “The Ultimate Selenium WebDriver Testing & Hands-on Guide”.

Filed under Selenium WebDriver, Test Automation, UI Testing.

Today we are announcing our new live online training session “The Ultimate Selenium WebDriver Testing & Hands-on Guide” which will take place on Saturday, 10th December 2016 – 10:00 UTC Time.

This Revolutionary New Selenium WebDriver training session has a length of 5 hours and is going to be presented in english.

“The Ultimate Selenium WebDriver Testing & Hands-on Guide” is a step-by-step online guide anyone can use to start running automated user interface tests immediately, using proven strategies we’ve used ourselves.
“The Ultimate Selenium WebDriver Testing & Hands-on Guide” is not so much a tutorial as it is a hands-on guide and an interactive session that will handhold you all the way to understanding software architecture, what should / should not be tested and where you should start.

By the time you finish this guide, you will not only have a dozen ideas about different testing strategies to build your own custom automated testing framework, but you’ll know exactly what it takes to implement each one of them and how to use Selenium WebDriver to achieve this goal.

The price of £100 per this live session is a bargain comparing to how much other tutorials cost, and the amount of information you’ll get after this will actually be tremendous. Be one of the few that will know the most important testing tips and tricks which will make you look like a testing guru.

 

This training is brought to you by LoadFocus.com – Cloud Testing Platform.

Filed under Selenium WebDriver, Test Automation, UI Testing.

Here are details related to using waits with Selenium WebDriver in Java. According to the Selenium documentation, at the moment, there are two different type of waits: explicit and implicit.

After you understand how to locate elements with Selenium WebDriver, you have to focus on waiting for elements to appear, be visible, be clickable.

Waiting is an automated step, elapse a certain amount of time, before execution can continue. Choose to use Explicit Waits or Implicit Waits. As a side note, you should not mix implicit and explicit waits.

Implicit Waits in Selenium WebDriver

An implicit wait tells WebDriver to poll the DOM for a certain amount of time when trying to find an element or elements if they are not immediately available.

The implicit wait is set for the life of the WebDriver object instance.

WebDriver driver = new FirefoxDriver();
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);

//use a URL that delays loading elements
driver.get("http://www.example.com/");
WebElement myDynamicElement = driver.findElement(By.id("myDynamicElement"));

You can set the implicit wait when you first instantiate the WebDriver:

driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);

This specifies the amount of time the driver should wait when searching for an element if it is not immediately present.

Explicit Waits in Selenium WebDriver

An explicit wait represents defined code for certain conditions or behaviours to occur/happen before continued to the next step.


 

LoadFocus.com is a cloud testing platform, use Automated Website Testing Service to build functional tests and automate regression manual tests of your website, more details.

Filed under Selenium WebDriver.

Enroll Now for the new Online Course: How to Find XPath for Web Elements in Chrome and Firefox Browsers.

 

The only reliable way of using XPath in Selenium WebDriver for text with apostrophes (single quotes) is to use double quotes for the expression of the XPath. In order to find how to use XPath to locate WebElements in Chrome browser you can check our previous article.

For example, for the code below:

driver.findElement(By.xpath("//*[@text='" + text + "']"))

you need to change to:

driver.findElement(By.xpath("//*[@text=\"" + text + "\"]"))

This way, it will not matter if your text contains apostrophes or not, and you’ll be able to select web elements by text that contains apostrophes (single quotes).


LoadFocus.com is a cloud testing platform, use Automated Website Testing Service to build functional tests and automate regression manual tests of your website, more details.

Filed under Selenium WebDriver, Test Automation, UI Testing.

Here is how you can find all the Links on a Webpage with Selenium WebDriver in Java.

All you need to do is to create a list of all WebElements, and then iterate thorough the list of links to print the link and the text of the link:

List allLinks = driver.findElements(By.tagName("a"));

System.out.println("All links found on web page are: " + allLinks.size() + " links");

for (WebElement link : allLinks) {

//print the links i.e. http://example.com or https://www.example.com
System.out.println(link.getAttribute("href"));

//print the links text
System.out.println(link.getText());
}

To get the link you can call the “getAttribute” method on the link WebElement passing “href” as its argument which will print the links as i.e. http://example.com or https://www.example.com

LoadFocus.com is a cloud testing platform: