Skip to main content

Identify Web Elements using Selenium Xpath Locator

selenium xpath locator

As we all know, Web elements are present diversely (Dropdown, Check Box, Text Box, Radio Button, etc.) in a Web page. And locators are our saviours, right from helping us identify a Web element uniquely within the page to enunciate its HTML properties and informing Selenium about the action to be performed. For example, the Dropdown mandatory field “Highest Qualification” is not with Select Class in the Web page. It is difficult to find the Web element for that field.

To resolve this, one may use Xpath Locator and find the element for the “Highest Qualification” field. Also they should try to select the Dropdown field value “Masters” making use of the Action Class. You can find the script but in that, using the Action Class to find the element for the mandatory “Highest Qualification” field will not be fruitful. You may have to apply the Contains text method to find out the element for the Xpath. Identifying Web elements is always a sensitive area and mandates a precise attitude. Therefore, we would suggest the more effective your locator, more secure will be your test automation script.

For more detailed information, visit here


Popular posts from this blog

Future Focus Infotech Digital Business & Transformation | Introduction

About Us Future Focus Infotech Pvt. Ltd. (FFI) – an established IT solutions provider for 20 years – offers innovative software services. Resources define the competency of an IT services organization and we have proven track record of operating a successful offshore/onshore model. The US office (Focus America Inc) was established in 2000 and the UAE (Future Focus Infotech FZE) in 2011. Our large pool of resources include 3,500+ skilled/trained employees in IT Solutions and Infrastructure Management – who are available offshore in India, US, and UAE with a “ready-to-serve” attitude.With such a diverse presence, we are successfully expanding into other markets proving ourselves as a global professional services firm. A unique combination of our quality processes, information security standards and ISO certifications brings us repeat business for high-class projects from our Tier 1 clients. Being ISO 9001 certified since 2005, our approach is always quality led. Our Quality Management S…

Using TestNG Framework in Automated Testing

Basics of UX and UI

UX refers to the term User Experience while UI stands for User Interface. But despite their vicinity, there are lot more to their execution process and design discipline.

UX design relates to the overall user interaction and experience with an application or a website. It is well known that great user experience results in return customers and great app usage. Hence the more importance. Typically, the UX Design process include research, design, prototyping, testing and measurement. Lot of factors influence UX process such as usability, utility, accessibility, design/aesthetics, performance, ergonomics, overall human interaction and marketing.

On the other hand, User Interface (UI) is more about visual design and information design around screens. Though a lot of process go into this graphical element, UI as the name implies, about the things the user will actually see and interact. It delivers tangible results and focuses on how an app or product surface look and functions.
Detailly disc…