4

First understand virtualization concepts: Your code runs on a system. In the past, we used to buy bare metals for each isolated code. Meaning if you want two servers you buy two servers. so if a code requires only 1G RAM, but the server you have is 32GB you are wasting remaining 31GB of hardware resource. To avoid this wastage the hardware virtualization ...


3

It checks all the boxes: Environments on demand Greater consistency across many users More reproducible and thus reliable environments Greater security options when implemented correctly Less 'it works on this machine but not that one' issues Less cost due to more virtualization and less physical machines to maintain Faster turnaround for changes when they ...


3

There are a number of uses of Docker from QA perspective in any qa company. Few of them are listed below: It runs faster in comparison to Jenkins or any other tool as the deployments are done in containers. Due to this, you can deploy the identical containers in different portions at the same time which makes it very quick. It’s quite easy to place ...


2

What is chromedriver: chromedriver has code that can interact with browser. THis commands are exposed through an API ( This is what you see as chromedriver started on localhost:14563 ) . From the code we access this api endpoints to tell chrome driver to do something. Example, when you say elem.click() , selenium talks to the API and tells chromedriver to ...


2

Is driver a chrome window session? No. A ChromeDriver represents a server than controls a Chrome browser running locally. The server will control the lifecycle of the browser, such as initiation, killing and controlling actions. For more details, see the docs Can I create driver = new ChromeDriver(); in every testng method or Cucumber scenario Yes, but it ...


2

As per this article, For QA, Docker solves the classic problem of ensuring that you test the same application you ship. Because everything the application needs to run is packaged in the container, it can run predictably and consistently across the pipeline, and with different configurations -- no more pesky variables to track down. If a configuration issue ...


2

The short answer is no. The longer answer is I'm not 100% sure but I'm fairly confident the answer is no. I've worked at Sauce Labs for a few years now, several of them in support. I've done a lot of hacking to try to make Safari and other Webdriven browsers play nice, and Safari has always been the most impenetrable. Since creating SafariDriver for Safari ...


2

Another way to phrase this question is, "How do multiple developers use the same code base in their work?" Selenium automation is just using an open source library to set up testing. It's not any different to what your developers do in your teams codebase. The process and setup are the same. What does that look like? Ensure the Selenium project is ...


1

driver.findElement(By.name("pincode")).sendKeys(rs.getString(1)); Is this what you looking for


1

Mobile and windows screen will have different size , I checked the page and it seems the height is larger in mobile screen try using jaa.executeScript("document.body.scrollBy(0,350);", "");


1

To gather the items for your list it looks like you don't need to be specific. Try something like this: List<WebElement> options = driver.findElements(By.xpath(//*[contains(@id,"mat-option-")])); That will populate your options List with all the elements that have an ID that contains mat-option-


1

I know you said that you have attempted a Fluent wait but you might not have tried it with these extra methods chained on it. The below wait will check for your element every 500 milliseconds for a maximum of 30 seconds and it will ignore NoSuchElementExceptions. new FluentWait<>(driver) .withTimeout(Duration.ofSeconds(30)) .pollingEvery(...


1

You handle overlay as any other element. If overlay animation is a loading spinner, then you should use an explicit wait in this sequence: Explicit wait for element to be present Explicit wait for element to be not present Reason: If you just wait for element not present, then the code may move to the next line before the overlay has been displayed yet. ...


1

ChromeOptions options = new ChromeOptions(); Map<String, Object> prefs = new HashMap<String, Object>(); prefs.put("safebrowsing.enabled", true); prefs.put("profile.default_content_settings.popups", 0); options.setExperimentalOption("prefs", prefs); System.setProperty("webdriver.chrome.driver", "C:\\...


1

Try to use developer APIs to perform this kind of actions against public sites like Facebook. For multiple reasons, logging into sites like Gmail and Facebook using WebDriver is not recommended. Aside from being against the usage terms for these sites (where you risk having the account shut down), it is slow and unreliable. The ideal practice is to use the ...


1

You can try out LambdaTest - a cross-browser testing tool. It offers automated Screenshot testing that helps you to perform browser compatibility testing by capturing full-page automated screenshots of your website across 25 browsers/OS and device combinations in a single test session. Also, you can download all your screenshots in your local system. ...


1

The id attribute of the <div> tag is dynamic which will change each time the webpage is accessed. In these cases you need to construct dynamic locator strategies as follows: xpath //div[starts-with(@id, 'post-body-')]/div/form/input Note: The second <div> is the first/only child of it's parent, the <form> is the first/only child of it's ...


Only top voted, non community-wiki answers of a minimum length are eligible