Top Selenium Commands Cheat Sheet

Fetching a web page
Using Get method:
driver.get(“www.google.com”)

Using Navigate method:
driver.navigate().to(“https://google.com “);

Locating forms and sending user inputs
driver.findElement(By.id(“lst-ib”)).sendKeys(“selenium tutorials”);

Clearing User inputs
driver.findElement(By.name(“q”)).clear();

Fetching data over any web element
driver.findElement(By.id(“element567”)).getText();

Performing Click event
driver.findElement(By.id(“btnK”)).click();

Navigating backward in browser history
driver.navigate().back();

Navigating forward in browser history
driver.navigate().forward();

Refresh/ Reload a web page
driver.navigate().refresh();

Closing Browser
driver.close();

Closing Browser and other all other windows associated with
the driver
driver.quit();

Moving between Windows
driver.switchTo().window(“windowName”);

Moving between Frames
driver.switchTo().frame(“frameName”);

Drag and Drop
WebElement element = driver.findElement(By.name(“source”));
WebElement target = driver.findElement(By.name(“target”));
(new Actions(driver)).dragAndDrop(element, target).perform();

Difference between WebDriverlistener and TestNG listener?

You must have always craved for more logs from the Webdriver so that you can debug your scripts or may be log more information about your tests. 

Here is your answer to it, WebDriverEventListner and TestNgListner(ITestListener Interface.)

 In TestNg you can use Listeners in Annotation.

WebDriverEventListener – This is an interface, which have some predefined methods so we will implement all of these methods.

Difference:- TestNG Listener are triggered at test level such as before starting test after the test or when test fails etc; whereas WebDriver Listener are triggered at component level such as before click, after click etc

Selenium code to capture screenshot only when test fails.

ITestResult is an interface which give information about our current test case which is under execution
result variable will store all the details of @Test along with the pass or fail result.


——————-
@AfterMethod
public void tearDown(ITestResult result) throws IOException
{
if(ITestResult.FAILURE==result.getStatus())
{
UtilityScrnSht.ScreenShot(Page.driver, result.getName());
//user created method
}
}
——————–

Automation tester opening: 2-7 years, Multiple locations

Automation tester opening# Company: Collabera Technologies# Location Bangalore, Hyderabad, Chennai, Mumbai, Pune and Gurgaon

Experience: 2-7 Years

Skill set: SOA Testing, SOAP UI, Scrum Master, API Testing Middleware Testing, Agile, Automation Testing. Scrum, Selenium, Manual Testing Agile Development

Mode of Interview: Webex Call (video) (Should have own

Laptop)

Interview: On Prior Intimation in weekdays only (Monday to Saturday)

Looking for Immediate Joiner

If you are interested please share your resume at email id vijay.zinzuvadiya@collabera.com along with below Information

Full Name

Contact No:

EMail id

Primary Skill

Company Name (Payroll) :

Experience:

Current Location:

Preferred Location:

Highest Qualification (Degree- Passing year and

Percentage score)

12th Standard (Degree- Passing year and Percentage

score)

10th Standard (Degree- Passing year and Percentage

score)

Date of Birth:

Current CTC

Expected CTC: Can join:

Date of birth

Free Course – Applitools – Next Gen Visual Testing Tool (Powered by AI)

Applitools is Next generation test automation platform powered by Visual AI.
This tool can help you in Increase quality, accelerate delivery and reduce cost with the world’s most intelligent test automation platform.

This tool is now one of the most demanding test tools in the parket. UntimateQA is offering a free course on applitools. All folks who are currently working on Selenium should undergo thos course.
Link to course: https://courses.ultimateqa.com/courses/applitools (website seems still under development, but you can enroll the course)

Training Content

Part 1: Getting started

  • 00-Course overview
  • Course prerequisites
  • 03 Course syllabus
  • How to download and install Visual Studio
  • Create Applitools account and install Nuget packages
  • Why must we automate visual testing
  • Benefits of Applitools

Part 2: Baselines and Dashboard

  • What is a baseline in Applitools
  • 01-Code overview
  • 02-Baseline examples
  • 03 1st comparison
  • 04 Zooming, resizing and layers
  • 05 Toggling and Floating region

Part 3: Match Levels and Regions

  • 01 Exact match level
  • 02 Strict match level
  • 03 Content match level
  • 04 Layout match level
  • 05 Introduction to Ignore regions
  • 06 Ignore regions in code
  • 07 Ignoring multiple regions
  • 08 Floating region
  • 09 Strict region
  • 10 Content region
  • 11 Layout region

Part 4: Test Manager

  • 01 Test Manager UI
  • 02 Batches
  • 03 Full page screenshots with CSS stitch
  • 04 CSS stitching vs standard scroll
  • 04 Bugs and test steps in UI
  • 05 Test steps code
  • 07 Fluent API
  • 08 How programatic regions look
  • 09 Conclusions