i
Ness Digital Engineering
Filter interviews by
To handle multiple popups in Selenium, we can use getWindowHandles() and switchTo() methods.
Use getWindowHandles() method to get all the window handles
Switch to the desired window using switchTo() method
Perform actions on the popup window
Switch back to the main window using switchTo() method
Credentials can be sent via URL by appending them to the URL as query parameters.
Append the username and password as query parameters to the URL
Encode the username and password using Base64 encoding
Example: http://example.com/login?username=admin&password=encoded_password
Explicit wait waits for a specific condition while Fluent wait waits for a condition with polling interval.
Explicit wait waits for a specific condition to occur before proceeding further
Fluent wait waits for a condition with a polling interval and ignores exceptions
Explicit wait is used when we know the condition and the maximum time to wait for it
Fluent wait is used when we don't know the maximum time to wait for a co...
To scroll page to desired location, use JavaScriptExecutor and scrollTo() method.
Create an instance of JavaScriptExecutor
Use executeScript() method to execute scrollTo() method
Pass the desired location as arguments to scrollTo() method
Example: ((JavascriptExecutor) driver).executeScript("window.scrollTo(0, document.body.scrollHeight)");
To get all options in a dropdown, use the getOptions() method and store the values in an array of strings.
Locate the dropdown element using any of the locators
Create a Select class object by passing the dropdown element as a parameter
Use the getOptions() method to get all the options in the dropdown
Store the options in an array of strings
To initialize Chrome driver, create an instance of ChromeDriver class.
Create an instance of ChromeDriver class
Set the path of ChromeDriver executable file
Use the instance to interact with the browser
To execute feature files in parallel in BDD Cucumber Framework, we can use tools like Maven Surefire plugin or Cucumber-JVM-Parallel-Plugin.
Use Maven Surefire plugin to run tests in parallel by adding
Use Cucumber-JVM-Parallel-Plugin to run tests in parallel by adding @CucumberOptions(plugin = {"json:target/cucumber-report/cucumber.json", "com.github.temyers:cucumber-jvm-parallel-plugin:5.0.0"...
Senior Software Engineer
787
salaries
| ₹6 L/yr - ₹23 L/yr |
Software Engineer
512
salaries
| ₹2.4 L/yr - ₹12 L/yr |
Member Technical Staff
238
salaries
| ₹8.8 L/yr - ₹30.4 L/yr |
Software Developer
228
salaries
| ₹2.5 L/yr - ₹11.7 L/yr |
Senior QA Engineer
220
salaries
| ₹5.9 L/yr - ₹23 L/yr |
TCS
Wipro
Infosys
HCLTech