To take screenshot of failed test case in Selenium Webdriver

Program:

For Screenshot:

 

Execute your Selenium tests in Multiple browsers

Program:

testng.xml:

 

Verify Active Links using Selenium Webdriver

Program:

Output:

Active Link: —[[FirefoxDriver: firefox on WINDOWS (43412c59-32a4-495c-af9c-274d46852689)] -> tag name: a]
Gmail
Active Link: —[[FirefoxDriver: firefox on WINDOWS (43412c59-32a4-495c-af9c-274d46852689)] -> tag name: a]
Images
Active Link: —[[FirefoxDriver: firefox on WINDOWS (43412c59-32a4-495c-af9c-274d46852689)] -> tag name: a]

Active Link: —[[FirefoxDriver: firefox on WINDOWS (43412c59-32a4-495c-af9c-274d46852689)] -> tag name: a]

Active Link: —[[FirefoxDriver: firefox on WINDOWS (43412c59-32a4-495c-af9c-274d46852689)] -> tag name: a]

Active Link: —[[FirefoxDriver: firefox on WINDOWS (43412c59-32a4-495c-af9c-274d46852689)] -> tag name: a]

Active Link: —[[FirefoxDriver: firefox on WINDOWS (43412c59-32a4-495c-af9c-274d46852689)] -> tag name: a]

Active Link: —[[FirefoxDriver: firefox on WINDOWS (43412c59-32a4-495c-af9c-274d46852689)] -> tag name: a]

Active Link: —[[FirefoxDriver: firefox on WINDOWS (43412c59-32a4-495c-af9c-274d46852689)] -> tag name: a]

Active Link: —[[FirefoxDriver: firefox on WINDOWS (43412c59-32a4-495c-af9c-274d46852689)] -> tag name: a]

Active Link: —[[FirefoxDriver: firefox on WINDOWS (43412c59-32a4-495c-af9c-274d46852689)] -> tag name: a]

Active Link: —[[FirefoxDriver: firefox on WINDOWS (43412c59-32a4-495c-af9c-274d46852689)] -> tag name: a]

Active Link: —[[FirefoxDriver: firefox on WINDOWS (43412c59-32a4-495c-af9c-274d46852689)] -> tag name: a]

Active Link: —[[FirefoxDriver: firefox on WINDOWS (43412c59-32a4-495c-af9c-274d46852689)] -> tag name: a]

Active Link: —[[FirefoxDriver: firefox on WINDOWS (43412c59-32a4-495c-af9c-274d46852689)] -> tag name: a]

Active Link: —[[FirefoxDriver: firefox on WINDOWS (43412c59-32a4-495c-af9c-274d46852689)] -> tag name: a]

Active Link: —[[FirefoxDriver: firefox on WINDOWS (43412c59-32a4-495c-af9c-274d46852689)] -> tag name: a]

Active Link: —[[FirefoxDriver: firefox on WINDOWS (43412c59-32a4-495c-af9c-274d46852689)] -> tag name: a]

Active Link: —[[FirefoxDriver: firefox on WINDOWS (43412c59-32a4-495c-af9c-274d46852689)] -> tag name: a]

Active Link: —[[FirefoxDriver: firefox on WINDOWS (43412c59-32a4-495c-af9c-274d46852689)] -> tag name: a]

Active Link: —[[FirefoxDriver: firefox on WINDOWS (43412c59-32a4-495c-af9c-274d46852689)] -> tag name: a]

Active Link: —[[FirefoxDriver: firefox on WINDOWS (43412c59-32a4-495c-af9c-274d46852689)] -> tag name: a]

Active Link: —[[FirefoxDriver: firefox on WINDOWS (43412c59-32a4-495c-af9c-274d46852689)] -> tag name: a]
Sign in
Active Link: —[[FirefoxDriver: firefox on WINDOWS (43412c59-32a4-495c-af9c-274d46852689)] -> tag name: a]
×
Active Link: —[[FirefoxDriver: firefox on WINDOWS (43412c59-32a4-495c-af9c-274d46852689)] -> tag name: a]
Yes, show me
Active Link: —[[FirefoxDriver: firefox on WINDOWS (43412c59-32a4-495c-af9c-274d46852689)] -> tag name: a]

Active Link: —[[FirefoxDriver: firefox on WINDOWS (43412c59-32a4-495c-af9c-274d46852689)] -> tag name: a]

Active Link: —[[FirefoxDriver: firefox on WINDOWS (43412c59-32a4-495c-af9c-274d46852689)] -> tag name: a]
??????
Active Link: —[[FirefoxDriver: firefox on WINDOWS (43412c59-32a4-495c-af9c-274d46852689)] -> tag name: a]
?????
Active Link: —[[FirefoxDriver: firefox on WINDOWS (43412c59-32a4-495c-af9c-274d46852689)] -> tag name: a]
??????
Active Link: —[[FirefoxDriver: firefox on WINDOWS (43412c59-32a4-495c-af9c-274d46852689)] -> tag name: a]
?????
Active Link: —[[FirefoxDriver: firefox on WINDOWS (43412c59-32a4-495c-af9c-274d46852689)] -> tag name: a]
?????
Active Link: —[[FirefoxDriver: firefox on WINDOWS (43412c59-32a4-495c-af9c-274d46852689)] -> tag name: a]
???????
Active Link: —[[FirefoxDriver: firefox on WINDOWS (43412c59-32a4-495c-af9c-274d46852689)] -> tag name: a]
?????
Active Link: —[[FirefoxDriver: firefox on WINDOWS (43412c59-32a4-495c-af9c-274d46852689)] -> tag name: a]
??????
Active Link: —[[FirefoxDriver: firefox on WINDOWS (43412c59-32a4-495c-af9c-274d46852689)] -> tag name: a]
??????
Active Link: —[[FirefoxDriver: firefox on WINDOWS (43412c59-32a4-495c-af9c-274d46852689)] -> tag name: a]
Privacy
Active Link: —[[FirefoxDriver: firefox on WINDOWS (43412c59-32a4-495c-af9c-274d46852689)] -> tag name: a]
Terms
Active Link: —[[FirefoxDriver: firefox on WINDOWS (43412c59-32a4-495c-af9c-274d46852689)] -> tag name: a]
Settings
Active Link: —[[FirefoxDriver: firefox on WINDOWS (43412c59-32a4-495c-af9c-274d46852689)] -> tag name: a]

Active Link: —[[FirefoxDriver: firefox on WINDOWS (43412c59-32a4-495c-af9c-274d46852689)] -> tag name: a]

Active Link: —[[FirefoxDriver: firefox on WINDOWS (43412c59-32a4-495c-af9c-274d46852689)] -> tag name: a]

Active Link: —[[FirefoxDriver: firefox on WINDOWS (43412c59-32a4-495c-af9c-274d46852689)] -> tag name: a]

Active Link: —[[FirefoxDriver: firefox on WINDOWS (43412c59-32a4-495c-af9c-274d46852689)] -> tag name: a]

Active Link: —[[FirefoxDriver: firefox on WINDOWS (43412c59-32a4-495c-af9c-274d46852689)] -> tag name: a]
Use Google.com
Active Link: —[[FirefoxDriver: firefox on WINDOWS (43412c59-32a4-495c-af9c-274d46852689)] -> tag name: a]
Advertising
Active Link: —[[FirefoxDriver: firefox on WINDOWS (43412c59-32a4-495c-af9c-274d46852689)] -> tag name: a]
Business
Active Link: —[[FirefoxDriver: firefox on WINDOWS (43412c59-32a4-495c-af9c-274d46852689)] -> tag name: a]
About
Active Link: —[[FirefoxDriver: firefox on WINDOWS (43412c59-32a4-495c-af9c-274d46852689)] -> tag name: a]

Verify drag and drop using Selenium Webdriver

Program:

 

Verify Right Click Operation using Selenium Webdriver

Program:

 

1 3 4 5