Posts

Showing posts with the label automation

How to Stop Selenium browser popup "Failed to load extension from : c:/users/internal. Loading of unpacked extensions is disabled by the administrator".

Image
How to Stop Selenium browser popup "Failed to load extension from : c:/users/internal. Loading of unpacked extensions is disabled by the administrator". You can stop this by creating webdriver with special properties. Example: ChromeOptions chromeOptions = new ChromeOptions(); chromeOptions.setExperimentalOption("useAutomationExtension", false);

How to handle browser admin login popup in selenium?

Image
How to enter username and password to this browser login popup? Solution: You can send username and password in the URL request. Example:  htpp://username:password@xyz.com But in the latest web browser url credentials are blocked because of security issues. Still you can use that features, you have to create web driver with some special operations. Example: ChromeOptions chromeOptions = new ChromeOptions(); chromeOptions.addArguments("--disable-blink-features=BlockCredentialedSubresources"); This feature consider as network error. You can reopen the URL. Example: driver.get(" htpp://username:password@xyz.com"); driver.get("xyz.com");

serenity cucumber selenium automation

BDD fundamentals Behaviour-Driven Development (BDD) is a collaborative approach to software development that bridges the communication gap between business and IT. BDD helps teams communicate requirements with more precision, discover defects early and produce software that remains maintainable over time. Writing acceptance criteria with Cucumber-JVM In Cucumber, you express acceptance criteria in a natural, human-readable form. For example, you want to write acceptance criteria for sending a mail you could write like this: Given I want to send a mail When I login to to mail box. clicked compose button, entered the details and clicked send Then I should see mail sent to the receiver. Sometimes tables can be used to summarize several different examples of the same scenario. Scenario Outline: sending a mail Given I have login to the mail box When I can enter the details '<Email>' and '<Subject>' Then I should see mail sent succes...

cucumber selenium automation for ag-Grid example

How to select row in xpath?