Chia sẻ kiến thức IT và đời sống – Sharing IT Knowledge and Life

Showing posts with label Software Testing. Show all posts
Showing posts with label Software Testing. Show all posts

Saturday, May 7, 2016

XPath in Selenium: Complete Guide

In Selenium automation, if the elements are not found by the general locators like id, class, name, etc. then XPath is used to find an element on the web page .
In this tutorial, we will learn about the xpath and different XPath expression to find the complex or dynamic elements, whose attributes changes dynamically on refresh or on any operations.

XPath


1. What is XPath?


  • XPath is a syntax for defining parts of an XML document
  • XPath uses path expressions to navigate in XML documents
  • XPath contains a library of standard functions
  • XPath is a major element in XSLT
  • XPath is a W3C recommendation

XPath is used to navigate through elements and attributes in an XML document.
XPath is a major element in W3C's XSLT standard.

Monday, April 11, 2016

Selenium in Juzu portlets

The JuZcret application is now finished, but our project is not perfect…
All through the previous blog posts, we have neglected to tell you about Unit Test, and this certainly is not a good practice.
The reason is that we wanted to keep you focused on a specific topic during each step. That’s why it’s only during this last step that we’ll talk about Unit Test in Juzu.
The good news is that Juzu allows you to leverage Selenium easily to simulate a real application while taking advantage of the speed of JUnit.
So it’s time to write Unit Test for our JuZcret portlet. The portlet will be deployed to an embedded portlet container. Selenium WebDriver will help to simulate almost all user interactions with the application, and then Arquillian will help to integrate with JUnit.

PHỔ BIẾN

CHUYÊN MỤC

TỔNG LƯỢT XEM