Capgemini Interview for 5 years automation experience
In this article, we will cover interview experience of Capgemini of our subscriber having 5 years of experience in Software testing. If you are appearing for an interview in Capgemini, please ensure you have covered below questions. You might get same interviewer.
Capgemini Interview for 5 years automation experience
Date - 22 January 2021
Experience - 5 Years
Round - 2nd
1.how to open browser in incognito mode.
Chrome:
DesiredCapabilities capabilities = DesiredCapabilities.chrome();
ChromeOptions options = new ChromeOptions();
options.addArguments("incognito");
capabilities.setCapability(ChromeOptions.CAPABILITY, options);
FireFox:
FirefoxProfile firefoxProfile = new FirefoxProfile();
firefoxProfile.setPreference("browser.privatebrowsing.autostart", true);
Internet Explorer:
DesiredCapabilities capabilities = DesiredCapabilities.internetExplorer();
capabilities.setCapability(InternetExplorerDriver.FORCE_CREATE_PROCESS, true);
capabilities.setCapability(InternetExplorerDriver.IE_SWITCHES, "-private");
2.how to read txt or .bat file in selenium
3.how to take screenshots
4.how to add failed test cases in report generation.
5.how to convert array to arraylist.
- By using below methods we can convert arrays into arraylist
- Arrays.asList()
- collections.addAll()
- add() method
6.how to convert hashmap to list.
- Can be done using Stream API
7.how to do right click on webelements.
- By using ContextClick method
8.how to know no. Of check box on page and find which one is checked.
9.how to read properties file.
10.what is boxing and unboxing .
11. How to read data from database.
12.code for explicit wait.
13. How to execute test from command prompt.
14. How to read file from command prompt , is it possible.
We will update the relevant answers for our readers to revise these questions.
Happy learning and happy sharing!
Comments
Post a Comment