Phaneendra Questions
Phaneendra Questions
Testing the software to identify defects and ensure it meets the requirements.
WebDriver is the main component of the Selenium use to interact with the browsers
Grid is used for running parallel tests across different machines and browsers
1) implicit wait :- tells selenium to wait for a certain amount of time to find the
element,
driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(10))
2) explicit wait :- waits for a specific condition to met before proceeding with the
code execution.
WebElement ele =
mywait.until(ExpectedConditions.visibilityOfElementLocated(By.id(“”)));
3) fluent wait :- advanced type of explicit wiat, here we can ignore specific exceptions
Wait<WebDriver> fluentWait = new FluentWait<>(driver)
.withTimeout(Duration.ofSeconds(15))
.pollingEvery(Duration.ofSeconds(2))
.ignoring(NoSuchElementException.class);
A framework is a set of tools, protocols, libraries for creating and executing the test
cases
By using the framework we can reuse the code, reduce script maintenance etc.
finally :- a block of code that will always executed whether an exception occurs
or not in the try-catch block
final :- is a keyword used to declare class or variable or method to
unchangeable.
Github is a web based platform that uses Git for version control, github allows
the users to store repositories, track issues and bugs etc.
Git is a version control system that helps developers to track changes in files
and collaborate on projects. It is a tool used to manage code changes locally and
keep history of the modifications.