Premium Employer

i

This company page is being actively managed by Infosys Team. If you also belong to the team, you can get access from here

Infosys Verified Tick

Compare button icon Compare button icon Compare
3.7

based on 36.8k Reviews

Filter interviews by

Infosys QA Engineer Automation QA.Selenium Interview Questions and Answers

Updated 16 Jul 2021

Infosys QA Engineer Automation QA.Selenium Interview Experiences

1 interview found

I applied via Company Website and was interviewed in Jan 2021. There was 1 interview round.

Interview Questionnaire 

3 Questions

  • Q1. Selenium automation questions
  • Q2. Basics of java
  • Q3. High level java

Interview Preparation Tips

Interview preparation tips for other job seekers - ffvfv

Interview questions from similar companies

I applied via Naukri.com

Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Keep your resume crisp and to the point. A recruiter looks at your resume for an average of 6 seconds, make sure to leave the best impression.
View all tips
Round 2 - Technical 

(1 Question)

  • Q1. CoreJava, Selenium Automation , TestNG, BDD Cucumber Framework,.

Interview Preparation Tips

Interview preparation tips for other job seekers - i immediatly Joining the Company can you please connect with the interview companies,.

Interview Questionnaire 

6 Questions

  • Q1. 1 tell me all locators
  • Ans. 

    There are several locators used in Selenium such as ID, Name, Class Name, Tag Name, Link Text, and Partial Link Text.

    • ID - unique identifier for an element

    • Name - name attribute of an element

    • Class Name - class attribute of an element

    • Tag Name - HTML tag name of an element

    • Link Text - exact text of a link element

    • Partial Link Text - partial text of a link element

  • Answered by AI
  • Q2. Difference between abstract and interface
  • Ans. 

    Abstract classes are partially implemented classes while interfaces are fully abstract classes.

    • Abstract classes can have both implemented and abstract methods while interfaces can only have abstract methods.

    • A class can only inherit from one abstract class but can implement multiple interfaces.

    • Abstract classes can have constructors while interfaces cannot.

    • Abstract classes can have instance variables while interfaces can...

  • Answered by AI
  • Q3. Different design techniques
  • Ans. 

    Different design techniques for QA automation

    • Data-driven testing

    • Keyword-driven testing

    • Behavior-driven development

    • Model-based testing

    • Exploratory testing

  • Answered by AI
  • Q4. TakeScreenshot in selenium- code
  • Ans. 

    TakeScreenshot method in Selenium captures a screenshot of the current web page.

    • Create an object of the TakesScreenshot interface

    • Use the getScreenshotAs() method to capture the screenshot

    • Save the screenshot to a file or display it in the console

  • Answered by AI
  • Q5. Difference between overloading and overriding
  • Ans. 

    Overloading is having multiple methods with the same name but different parameters. Overriding is having a method in child class with the same name and signature as in parent class.

    • Overloading is compile-time polymorphism while overriding is runtime polymorphism

    • Overloading is used to provide different ways of calling the same method with different parameters

    • Overriding is used to provide a specific implementation of a m...

  • Answered by AI
  • Q6. Various Selenium components
  • Ans. 

    Selenium components for automation testing

    • Selenium WebDriver - main component for browser automation

    • Selenium IDE - record and playback tool for creating test cases

    • Selenium Grid - distribute tests across multiple machines

    • Selenium RC - deprecated component for browser automation

    • Selenium Server - used to run Selenium tests on remote machines

  • Answered by AI

Skills evaluated in this interview

Interview experience
3
Average
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
-

I applied via Naukri.com and was interviewed in Sep 2024. There was 1 interview round.

Round 1 - Technical 

(10 Questions)

  • Q1. What is the output of below code class Animal{ Animal(){ System.out.println("animal is created") } class Dog extends Animal{ Dog(){ System.out.println("Dog is created")} class TestSuper4{ pub...
  • Ans. 

    The output of the code will be 'animal is created' followed by 'Dog is created'.

    • The code defines a class Animal with a constructor that prints 'animal is created'.

    • It also defines a class Dog that extends Animal, with a constructor that prints 'Dog is created'.

    • In the main method, an instance of Dog is created, which will trigger the constructors of both Animal and Dog classes.

  • Answered by AI
  • Q2. Output of this : System.out.println(10+20+"Hello"+30+40) - Explain
  • Q3. Output of this : String name="Hello"; name=name+"There"; system.out.println(name)
  • Ans. 

    The output will be 'HelloThere'

    • Concatenation of 'Hello' and 'There' results in 'HelloThere'

    • The final string is printed using System.out.println()

  • Answered by AI
  • Q4. StringBuffer buffer=new StringBuffer("Hello") buffer.append("There"); System.out.println(buffer);
  • Ans. 

    The code creates a StringBuffer object with 'Hello' and appends 'There' to it before printing the final string.

    • StringBuffer is mutable, so the original 'Hello' string can be modified

    • The append() method adds the specified string to the end of the buffer

    • The final output will be 'HelloThere'

  • Answered by AI
  • Q5. Which is valid or invalid a. ChromeDriver driver=new ChromeDriver(); b. WebDriver driver=new ChromeDriver(); c. WebDriver driver2=new WebDriver(); driver2=new ChromeDriver();
  • Ans. 

    Option a is valid, option b is valid, option c is invalid.

    • Option a is valid because ChromeDriver is a subclass of WebDriver, so it can be assigned to a WebDriver reference.

    • Option b is valid because ChromeDriver is a subclass of WebDriver, so it can be instantiated using a WebDriver reference.

    • Option c is invalid because WebDriver is an interface and cannot be instantiated directly. It can only be used as a reference typ

  • Answered by AI
  • Q6. Program to sort the input in descending order without using inbuild method/functions
  • Ans. 

    Sort input array of strings in descending order without using inbuilt functions

    • Iterate through the array and compare each element with the rest to find the largest element

    • Swap the largest element with the first element, then repeat the process for the remaining elements

    • Continue this process until the array is sorted in descending order

  • Answered by AI
  • Q7. Difference between findElement and findElements
  • Ans. 

    findElement returns the first matching element on the page, while findElements returns a list of all matching elements.

    • findElement returns a single WebElement matching the locator provided

    • findElements returns a list of WebElements matching the locator provided

    • findElement will throw NoSuchElementException if no element is found, while findElements will return an empty list

  • Answered by AI
  • Q8. Difference between getwindowhandle and getwindowhandles() and what is output type
  • Ans. 

    getwindowhandle returns the handle of the current window, getwindowhandles() returns handles of all open windows

    • getwindowhandle returns a single window handle, while getwindowhandles() returns a set of window handles

    • getwindowhandle is used to switch between windows in Selenium WebDriver

    • Output type of getwindowhandle is String, while output type of getwindowhandles() is Set

Answered by AI
  • Q9. Question on finding the xpaths on website
  • Q10. Difference between String and StringBuilder?
  • Ans. 

    String is immutable, while StringBuilder is mutable and more efficient for concatenating strings.

    • String is immutable, meaning its value cannot be changed once it is created.

    • StringBuilder is mutable, allowing for modifications to the string without creating a new object.

    • StringBuilder is more efficient for concatenating multiple strings as it does not create new objects each time.

    • Example: String str = "Hello"; StringBuil

  • Answered by AI

    Skills evaluated in this interview

    Interview experience
    5
    Excellent
    Difficulty level
    Easy
    Process Duration
    Less than 2 weeks
    Result
    Selected Selected

    I applied via Naukri.com and was interviewed in Oct 2024. There was 1 interview round.

    Round 1 - One-on-one 

    (7 Questions)

    • Q1. Code to print the no of Times the letters present in a string
    • Ans. 

      Code to count the occurrences of each letter in a string and print the result

      • Iterate through each character in the string

      • Use a dictionary to store the count of each letter

      • Print the count of each letter at the end

    • Answered by AI
    • Q2. What are the ways to start a Appium server
    • Ans. 

      Appium server can be started using command line, programmatically in code, or using Appium desktop app.

      • Start Appium server using command line by running 'appium' command

      • Start Appium server programmatically in code using Appium server programmatically in code using AppiumDriverLocalService class

      • Start Appium server using Appium desktop app by launching the app and starting the server

    • Answered by AI
    • Q3. How to run tests parallel for mobile devices
    • Ans. 

      Tests can be run parallel for mobile devices using test automation frameworks like Appium or Espresso.

      • Use test automation frameworks like Appium or Espresso to run tests parallel for mobile devices

      • Leverage cloud-based testing platforms like Sauce Labs or BrowserStack for parallel testing on multiple devices

      • Implement parallel test execution using tools like TestNG or JUnit in combination with Appium or Espresso

      • Utilize d...

    • Answered by AI
    • Q4. How do you automate otp in mobile
    • Ans. 

      Automating OTP in mobile involves using automation tools to interact with the OTP input field and validate the received OTP.

      • Use automation tools like Appium or Espresso to interact with the OTP input field

      • Extract the OTP from the message received on the mobile device

      • Validate the extracted OTP with the OTP input field

      • Handle scenarios where OTP validation fails

    • Answered by AI
    • Q5. What are desired capabilities
    • Ans. 

      Desired capabilities are a set of properties or attributes that define the behavior of a browser or mobile device in Selenium automation testing.

      • Desired capabilities are key-value pairs that are used to configure the WebDriver instances in Selenium.

      • They can be used to set properties like browser name, version, platform, and other settings.

      • For example, setting 'browserName' to 'chrome' will launch the Chrome browser dur

    • Answered by AI
    • Q6. How do you tell appium to run tests on ios or Android devices
    • Ans. 

      To run tests on iOS or Android devices using Appium, specify the platformName capability in desired capabilities.

      • Specify platformName capability as 'iOS' for iOS devices and 'Android' for Android devices

      • Include other necessary desired capabilities like deviceName, platformVersion, appPackage, appActivity, etc.

      • Example: capabilities.setCapability('platformName', 'iOS');

    • Answered by AI
    • Q7. How to set up automation for ios devices
    • Ans. 

      Setting up automation for iOS devices involves using tools like Appium and Xcode for testing mobile applications.

      • Install Xcode on your Mac machine

      • Set up Appium for iOS automation

      • Connect your iOS device to the Mac machine

      • Create test scripts using Appium for iOS apps

      • Execute the test scripts on the connected iOS device

    • Answered by AI

    Skills evaluated in this interview

    Interview experience
    4
    Good
    Difficulty level
    Moderate
    Process Duration
    Less than 2 weeks
    Result
    Not Selected

    I applied via Company Website and was interviewed in Oct 2024. There was 1 interview round.

    Round 1 - Technical 

    (4 Questions)

    • Q1. Write java program to print sum of digits from a given string eg: "abcd23"
    • Ans. 

      Java program to print sum of digits from a given string

      • Iterate through each character in the string

      • Check if the character is a digit using Character.isDigit() method

      • Convert the digit character to integer using Character.getNumericValue() method

      • Sum up all the digits found in the string

    • Answered by AI
    • Q2. Explain oops concepts used in your framework with example?
    • Ans. 

      OOPs concepts used in the framework include inheritance, polymorphism, encapsulation, and abstraction.

      • Inheritance is used to create a parent-child relationship between classes. For example, a base class 'Page' can be inherited by 'HomePage' and 'LoginPage' classes.

      • Polymorphism allows objects of different classes to be treated as objects of a common superclass. For instance, a 'click' method can be implemented different...

    • Answered by AI
    • Q3. Explain polymorphism
    • Ans. 

      Polymorphism is the ability of a single function or method to operate on different types of data.

      • Polymorphism allows objects of different classes to be treated as objects of a common superclass.

      • There are two types of polymorphism: compile-time (method overloading) and runtime (method overriding).

      • Example of compile-time polymorphism: function overloading in Java.

      • Example of runtime polymorphism: method overriding in Java

    • Answered by AI
    • Q4. Java program to print the sum of elements in string array eg: String[] arr = {"1","2","3"}
    • Ans. 

      Java program to print the sum of elements in a string array.

      • Convert each element in the string array to an integer using Integer.parseInt()

      • Sum up all the integers to get the total sum

    • Answered by AI

    Skills evaluated in this interview

    Interview experience
    5
    Excellent
    Difficulty level
    Easy
    Process Duration
    2-4 weeks
    Result
    Selected Selected

    I was interviewed in May 2024.

    Round 1 - Technical 

    (10 Questions)

    • Q1. Basics of Selenium(Windowhandles,Screenshot,Actions class,Selector Class,) with syntax
    • Q2. Asked to write Automation Framework architecture
    • Q3. What are the different gherkin words
    • Ans. 

      Gherkin words are keywords used in Gherkin syntax for writing test scenarios in Behavior Driven Development (BDD).

      • Feature

      • Scenario

      • Given

      • When

      • Then

      • And

      • But

    • Answered by AI
    • Q4. What we will use in plugin
    • Ans. 

      Plugins are used to extend the functionality of a software application.

      • Plugins are additional software components that can be added to an existing application to provide new features or functionalities.

      • They can be used to customize the behavior of the application without modifying its core code.

      • Examples of plugins include browser extensions, WordPress plugins, and Adobe Photoshop filters.

    • Answered by AI
    • Q5. How to run runner class
    • Ans. 

      To run a runner class, you can use a test runner tool like JUnit or TestNG in your automation testing framework.

      • Use a test runner tool like JUnit or TestNG to execute the runner class

      • Add the @RunWith annotation in JUnit or specify the runner class in TestNG XML file

      • Make sure the runner class includes the necessary setup and teardown methods for test execution

    • Answered by AI
    • Q6. Java oops, strings , exception handling
    • Q7. How to run parallel mode in testng,groups,priority
    • Ans. 

      TestNG allows running tests in parallel mode using groups and priorities.

      • Use 'parallel' attribute in testng.xml file to specify parallel mode (e.g. )

      • Use 'groups' attribute in testng.xml file to group tests that should run in parallel (e.g. )

      • Use 'priority' attribute in testng.xml file to specify the order in which tests should run (e.g.

    • Answered by AI
    • Q8. Write Merge Sort Programme
    • Ans. 

      Merge Sort is a divide and conquer algorithm that divides the input array into two halves, sorts them, and then merges them back together.

      • Divide the array into two halves recursively

      • Sort each half using Merge Sort recursively

      • Merge the sorted halves back together

    • Answered by AI
    • Q9. Write Reverse a string programme
    • Ans. 

      Program to reverse a string using array of characters

      • Create an array of characters from the input string

      • Iterate through the array in reverse order and append each character to a new string

      • Return the reversed string

    • Answered by AI
    • Q10. Write syntax of data driven testing (XSSF Workbook) Syntax
    • Ans. 

      Data driven testing syntax using XSSF Workbook

      • Create XSSFWorkbook object

      • Get the sheet from the workbook

      • Iterate through rows and columns to fetch test data

      • Use test data in your test cases

    • Answered by AI
    Round 2 - Technical 

    (1 Question)

    • Q1. Selenium basics ( window handles , screenshot,reports, file upload and download, Add extension, Headless mode)

    Interview Preparation Tips

    Interview preparation tips for other job seekers - I would say it is easy to crack Service based Companies. Just prepare all the concepts of Selenium, Java,TestNG,Maven,GitHub and basic 20 Programmes.

    For Selenium and BDD(Cucumber)Learn Rahul Shetty Udemy course
    For Java search and learn top 200 interview questions.
    Basic programmes like ( Duplicate characters,reverse string,unique characters, string anagram, Bubble sort , merge sort, quick sort and some more) .

    How I switched from my current company.
    Do’s
    Uninstall social media apps.
    Stop watching movies.
    Stop eating Junk food.
    Study at least 1-2 hours daily.
    Listen motivational songs.
    Make connections on LinkedIn.
    Make single page resume by creating on overleaf website.

    How to apply to companies.
    Don’t apply directly on company website(Big mistake)
    Send resumes to hr directly(u will get their mails on some posts on LinkedIn)
    Ask referral on LinkedIn.
    Update Naukri daily 9am and put notice period to 30 or 15days.

    Skills evaluated in this interview

    Interview experience
    3
    Average
    Difficulty level
    -
    Process Duration
    -
    Result
    -
    Round 1 - Technical 

    (2 Questions)

    • Q1. List, lambda function, reverse string program
    • Q2. Sort the list, dictionary
    Round 2 - Technical 

    (1 Question)

    • Q1. OOP concept, Decorator, list to dictionary, Linux
    Interview experience
    3
    Average
    Difficulty level
    -
    Process Duration
    -
    Result
    -
    Round 1 - Technical 

    (2 Questions)

    • Q1. Wap for reverse string in java
    • Ans. 

      Reverse a string in Java using StringBuilder's reverse method.

      • Create a StringBuilder object with the input string

      • Use the reverse() method of StringBuilder to reverse the string

      • Convert the reversed StringBuilder object back to a string using toString()

    • Answered by AI
    • Q2. What is interface
    • Ans. 

      An interface in software development is a contract that defines the methods that a class must implement.

      • Interfaces in programming languages like Java, C#, and TypeScript provide a way to achieve abstraction and multiple inheritance.

      • Classes implementing an interface must provide concrete implementations for all the methods defined in the interface.

      • Interfaces allow for loose coupling between components, making code more

    • Answered by AI

    Skills evaluated in this interview

    I applied via Company Website and was interviewed in Oct 2020. There were 4 interview rounds.

    Interview Questionnaire 

    1 Question

    • Q1. Types of waits, types of exceptions, oops concepts
    • Ans. 

      Answering types of waits, types of exceptions, and oops concepts for QA Engineer Automation QA.Selenium

      • Types of waits include implicit, explicit, and fluent waits

      • Types of exceptions include checked and unchecked exceptions

      • Oops concepts include inheritance, polymorphism, and encapsulation

    • Answered by AI

    Interview Preparation Tips

    Interview preparation tips for other job seekers - Keep your basics clear

    Skills evaluated in this interview

    Infosys Interview FAQs

    What are the top questions asked in Infosys QA Engineer Automation QA.Selenium interview?

    Some of the top questions asked at the Infosys QA Engineer Automation QA.Selenium interview -

    1. selenium automation questi...read more
    2. high level j...read more
    3. basics of j...read more

    Tell us how to improve this page.

    People are getting interviews through

    based on 1 Infosys interview
    Company Website
    100%
    Low Confidence
    ?
    Low Confidence means the data is based on a small number of responses received from the candidates.
    Join Infosys Creating the next opportunity for people, businesses & communities

    Interview Questions from Similar Companies

    TCS Interview Questions
    3.7
     • 10.1k Interviews
    Accenture Interview Questions
    3.9
     • 7.9k Interviews
    Wipro Interview Questions
    3.7
     • 5.5k Interviews
    Cognizant Interview Questions
    3.8
     • 5.5k Interviews
    Capgemini Interview Questions
    3.8
     • 4.7k Interviews
    Tech Mahindra Interview Questions
    3.6
     • 3.7k Interviews
    HCLTech Interview Questions
    3.5
     • 3.7k Interviews
    Genpact Interview Questions
    3.9
     • 3k Interviews
    LTIMindtree Interview Questions
    3.9
     • 2.8k Interviews
    IBM Interview Questions
    4.1
     • 2.3k Interviews
    View all

    Infosys QA Engineer Automation QA.Selenium Reviews and Ratings

    based on 2 reviews

    4.0/5

    Rating in categories

    4.0

    Skill development

    4.0

    Work-Life balance

    3.5

    Salary & Benefits

    5.0

    Job Security

    4.0

    Company culture

    3.5

    Promotions/Appraisal

    4.0

    Work Satisfaction

    Explore 2 Reviews and Ratings
    Technology Analyst
    56.4k salaries
    unlock blur

    ₹3 L/yr - ₹11 L/yr

    Senior Systems Engineer
    49.5k salaries
    unlock blur

    ₹2.8 L/yr - ₹8 L/yr

    System Engineer
    38.9k salaries
    unlock blur

    ₹2.5 L/yr - ₹5.5 L/yr

    Technical Lead
    30.7k salaries
    unlock blur

    ₹5.2 L/yr - ₹19.5 L/yr

    Senior Associate Consultant
    27.1k salaries
    unlock blur

    ₹6.2 L/yr - ₹16.8 L/yr

    Explore more salaries
    Compare Infosys with

    TCS

    3.7
    Compare

    Wipro

    3.7
    Compare

    Cognizant

    3.8
    Compare

    Accenture

    3.9
    Compare

    Calculate your in-hand salary

    Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary
    Did you find this page helpful?
    Yes No
    write
    Share an Interview