Open in app

Sign In

Write

Sign In

Abhishek Dhoundiyal
Abhishek Dhoundiyal

2 Followers

Home

About

Mar 7

How Selenium WebDriver overcomes Same Origin Policy

First of all “Same Origin Policy” is introduced for security reason, and it ensures that content of your site will never be accessible by a script from another site. As per the policy, any code loaded within the browser can only operate within that website’s domain. What did it do? Same Origin policy prohibits…

Same Origin Policy

2 min read

Same Origin Policy

2 min read


Mar 7

How to modify the website language using selenium python bindings.

How can I modify the language option in selenium python bindings? I’ve tried the — lang, but it didn’t work for me: Not Working: chrome_options.add_argument("--lang=en") OR chrome_options.add_argument("--lang=en-US") After some research, I found that to solve this, we have to use the experimental option intl.accept_languages: Working Solution: options = webdriver.ChromeOptions() options.add_experimental_option('prefs', {'intl.accept_languages': 'en,en_US'}) driver = webdriver.Chrome(chrome_options=options)

Selenium

1 min read

Selenium

1 min read


Feb 26

How only 1 thing that will change the way you debug your Selenium Automation Report

Common mistakes & Creating powerful Debuggable report for Selenium When you create test automation with selenium, you only rely on the screenshot and the errors mention on the report but what would happen if you get the below scenarios. 🤔 Scenarios: You got a selenium test report on email with 1 or more error. You have checked the attached…

Selenium

3 min read

How only 1 thing that will change the way you debug your Selenium Automation Report
How only 1 thing that will change the way you debug your Selenium Automation Report
Selenium

3 min read


Feb 26

How to Mock API Server in Postman

A mock API server or mock server API imitates a real API server by providing realistic mock API responses to requests. Responses can be static or dynamic as per your requirement, and they simulate the data the real API would return, matching the API schema. It is not always easy…

Postman

3 min read

How to Mock API Server in Postman
How to Mock API Server in Postman
Postman

3 min read


Feb 26

Fixing scrollIntoView in Selenium using JavascriptExecutor

To scroll to a specific element in selenium, we use scrollIntoView method. Lets’ understand the scrollIntoView method very quickly. scrollIntoView: The Element interface's scrollIntoView() method scrolls the element's parent container such that the element on which scrollIntoView() is called is visible to the user Ref: https://developer.mozilla.org/en/docs/Web/API/Element/scrollIntoView Now let’s take an example to understand it properly

Selenium

2 min read

Fixing scrollIntoView in Selenium using JavascriptExecutor
Fixing scrollIntoView in Selenium using JavascriptExecutor
Selenium

2 min read


Feb 26

Selenium Get, Capture & display the validation error message

In our day to day task we get into cases, where we need to verify the form validation message and had to verify the state of the element. Let’s take an example to understand it better. Check the below screenshot and let’s assume we want to get the validation error…

Selenium

2 min read

Selenium Get, Capture & display the validation error message
Selenium Get, Capture & display the validation error message
Selenium

2 min read


Feb 26

How to define Test Timeout in TestNG

TestNG allows us to set a timeout period for a test to get execute completely. Timeout can be configured at two levels: Suite level — This will be applicable for all the tests present in the TestNG test suite. Test level — This will be applicable for the test method…

Testng

2 min read

How to define Test Timeout in TestNG
How to define Test Timeout in TestNG
Testng

2 min read


Feb 26

How to Read Column Wise Data from Excel File-Apache POI

Today someone on the Stack-overflow, asked me that he wanted to read the below Example Data using cell reference attribute. The table in the sheet is maintained in column order. For example, if the table is something like: Then he wanted the script to run for:

Selenium

3 min read

How to Read Column Wise Data from Excel File-Apache POI
How to Read Column Wise Data from Excel File-Apache POI
Selenium

3 min read


Feb 26

How to set Download Directory Path in Chrome & Firefox & Edge

DownloadDirectory How to implement it on Selenium: First Setting & Creating directory if not available: String parentDirectoryPath = System.getProperty("user.dir"); String downloadFilepath = parentDirectoryPath+"/downloads/"; APP_LOGS.debug("Chrome Download path set to: "+downloadFilepath); File downloadFolder = new File(downloadFilepath); if (!downloadFolder.exists()){ downloadFolder.mkdir(); }

Selenium

2 min read

How to set Download Directory Path in Chrome & Firefox & Edge
How to set Download Directory Path in Chrome & Firefox & Edge
Selenium

2 min read


Feb 26

Using TestNG @Factory Annotation with @Dataprovider

TestNG @Factory annotation is used to specify a method as a factory for providing objects to be used by TestNG for test classes. The method marked with @Factory annotation and must return Object[]. First, let’s understand the difference between @factory and @DataProvider annotation? TestNG @Factory annotation is used to create instances of test classes dynamically. …

Testng

3 min read

Using TestNG @Factory Annotation with @Dataprovider
Using TestNG @Factory Annotation with @Dataprovider
Testng

3 min read

Abhishek Dhoundiyal

Abhishek Dhoundiyal

2 Followers

https://stackoverflow.com/users/5372079/abhishek-dhoundiya

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech