i
Xoriant
Work with us
Filter interviews by
ElementNotPresent exception occurs even if element is present on page. Why?
The element may not be loaded yet, so wait for it to load before checking
The element may be hidden or not visible on the page
The element may have a different name or ID than expected
The element may be in an iframe or shadow DOM
The element may have been removed or deleted from the page
To switch default frame in automation testing, use switchTo() method of WebDriver class.
Use driver.switchTo().frame() method to switch to a specific frame by index, name, or WebElement.
Use driver.switchTo().defaultContent() method to switch back to the default content.
Example: driver.switchTo().frame(0); //switch to first frame
Example: driver.switchTo().frame("frameName"); //switch to frame with name "frameName"
To take multiple values from dropdown, use a loop to iterate through each option and select them.
Identify the dropdown element using its locator
Use the Select class to create an object for the dropdown
Use the getOptions() method to get all the options in the dropdown
Iterate through the options using a loop and select each option using the selectByVisibleText() or selectByValue() method
Test with priority 1 executes first, followed by 0 and then -1.
Tests with higher priority are executed first
Priority can be used to determine the order of execution
Priority can be set in test management tools like JIRA or TestRail
To handle Iframe, switch to the frame using driver.switchTo().frame() method.
Identify the Iframe using its ID, name, or index
Switch to the Iframe using driver.switchTo().frame() method
Perform the required actions inside the Iframe
Switch back to the default content using driver.switchTo().defaultContent() method
Alerts can be handled using Alert interface in Selenium
Use driver.switchTo().alert() method to switch to alert
Use getText() method to get the text of the alert
Use accept() method to click on OK button of the alert
Use dismiss() method to click on Cancel button of the alert
GetOption() method is used to retrieve the value of a selected option in a dropdown list.
GetOption() method is commonly used in automated testing to verify if the correct option is selected in a dropdown list.
The method returns the value of the selected option as a string.
If no option is selected, the method returns null or an empty string.
Failed test screenshots can be taken using automation tools and saved in a designated folder.
Use automation tools like Selenium or Appium to capture screenshots on test failure
Save the screenshots in a designated folder for easy access and reference
Include the screenshot file name in the test report for better traceability
TestNG annotations are executed in a specific sequence during test execution.
BeforeSuite
BeforeTest
BeforeClass
BeforeMethod
Test
AfterMethod
AfterClass
AfterTest
AfterSuite
Our automation framework is built using Selenium WebDriver and TestNG.
We use Page Object Model design pattern for better maintainability.
We have created custom libraries for common functions like login, logout, etc.
We use Jenkins for continuous integration and execution of automated tests.
We have implemented data-driven testing using Excel sheets.
We use Git for version control and collaboration among team members.
I applied via Naukri.com and was interviewed in Apr 2022. There were 3 interview rounds.
I applied via Company Website and was interviewed before Apr 2022. There were 2 interview rounds.
Our automation framework is built using Selenium WebDriver and TestNG.
We use Page Object Model design pattern for better maintainability.
We have created custom libraries for common functions like login, logout, etc.
We use Jenkins for continuous integration and execution of automated tests.
We have implemented data-driven testing using Excel sheets.
We use Git for version control and collaboration among team members.
TestNG annotations are executed in a specific sequence during test execution.
BeforeSuite
BeforeTest
BeforeClass
BeforeMethod
Test
AfterMethod
AfterClass
AfterTest
AfterSuite
Failed test screenshots can be taken using automation tools and saved in a designated folder.
Use automation tools like Selenium or Appium to capture screenshots on test failure
Save the screenshots in a designated folder for easy access and reference
Include the screenshot file name in the test report for better traceability
GetOption() method is used to retrieve the value of a selected option in a dropdown list.
GetOption() method is commonly used in automated testing to verify if the correct option is selected in a dropdown list.
The method returns the value of the selected option as a string.
If no option is selected, the method returns null or an empty string.
Different types of exceptions include checked, unchecked, runtime, and error.
Checked exceptions are checked at compile time and must be handled or declared.
Unchecked exceptions are not checked at compile time and do not need to be handled or declared.
Runtime exceptions are unchecked exceptions that occur during runtime.
Errors are serious problems that cannot be handled by the program, such as OutOfMemoryError.
Alerts can be handled using Alert interface in Selenium
Use driver.switchTo().alert() method to switch to alert
Use getText() method to get the text of the alert
Use accept() method to click on OK button of the alert
Use dismiss() method to click on Cancel button of the alert
Asserts are used to verify expected results in automated tests. There are various types of asserts.
Assert.AreEqual - compares two values for equality
Assert.IsTrue/False - checks if a condition is true/false
Assert.IsNull/NotNull - checks if a value is null/not null
Assert.ThrowsException - checks if an exception is thrown
Assert.AreSame - checks if two objects refer to the same instance
Assert.AreNotSame - checks if two ob...
To handle Iframe, switch to the frame using driver.switchTo().frame() method.
Identify the Iframe using its ID, name, or index
Switch to the Iframe using driver.switchTo().frame() method
Perform the required actions inside the Iframe
Switch back to the default content using driver.switchTo().defaultContent() method
To switch default frame in automation testing, use switchTo() method of WebDriver class.
Use driver.switchTo().frame() method to switch to a specific frame by index, name, or WebElement.
Use driver.switchTo().defaultContent() method to switch back to the default content.
Example: driver.switchTo().frame(0); //switch to first frame
Example: driver.switchTo().frame("frameName"); //switch to frame with name "frameName"
Test with priority 1 executes first, followed by 0 and then -1.
Tests with higher priority are executed first
Priority can be used to determine the order of execution
Priority can be set in test management tools like JIRA or TestRail
To take multiple values from dropdown, use a loop to iterate through each option and select them.
Identify the dropdown element using its locator
Use the Select class to create an object for the dropdown
Use the getOptions() method to get all the options in the dropdown
Iterate through the options using a loop and select each option using the selectByVisibleText() or selectByValue() method
ElementNotPresent exception occurs even if element is present on page. Why?
The element may not be loaded yet, so wait for it to load before checking
The element may be hidden or not visible on the page
The element may have a different name or ID than expected
The element may be in an iframe or shadow DOM
The element may have been removed or deleted from the page
Top trending discussions
I appeared for an interview in Sep 2019.
I applied via Recruitment Consultant and was interviewed before Jan 2020. There were 5 interview rounds.
I am proficient in Java, Python, and C++. I have 2 years of experience in software development. I have excellent communication skills for client interaction.
Proficient in Java, Python, and C++
2 years of software development experience
Excellent communication skills for client interaction
I applied via LinkedIn and was interviewed before Jun 2020. There were 3 interview rounds.
I applied via LinkedIn and was interviewed before Feb 2021. There were 3 interview rounds.
Basic Java programs related to string and array manipulation
I applied via Company Website and was interviewed in Apr 2020. There were 4 interview rounds.
posted on 15 Jul 2022
I applied via Approached by Company and was interviewed before Jul 2021. There were 2 interview rounds.
Basic programming questions
I appeared for an interview in Sep 2020.
I applied via Naukri.com and was interviewed before Nov 2020. There were 3 interview rounds.
Some of the top questions asked at the Xoriant Automation Test Engineer interview -
based on 2 interview experiences
Difficulty level
Duration
based on 5 reviews
Rating in categories
Senior Software Engineer
1.8k
salaries
| ₹8.6 L/yr - ₹31.7 L/yr |
Software Engineer
1.7k
salaries
| ₹4.5 L/yr - ₹14 L/yr |
Softwaretest Engineer
609
salaries
| ₹2.5 L/yr - ₹9 L/yr |
Technical Lead
592
salaries
| ₹11.5 L/yr - ₹40 L/yr |
Senior Test Engineer
510
salaries
| ₹9 L/yr - ₹30 L/yr |
CitiusTech
HTC Global Services
HERE Technologies
Collabera Technologies