HomeExamsIVS AcademyTETAIVSPSEIC1001
TETAIVSPSEIC1001

Infosys Certified Selenium with Python Automation Tester

Practice with real exam-pattern questions for Infosys Certified Selenium with Python Automation Tester. Each question includes a detailed explanation to help you understand the concept, not just memorise the answer. Try 10 questions free — no login required.

BeginnerIVS Academy150 min
Free questions

10 Infosys Certified Selenium with Python Automation Tester practice questions with answers

Real Lex exam-pattern multiple-choice questions for the Infosys Certified Selenium with Python Automation Tester certification. Each question includes the correct answer. The full question bank is available to Premium members.

  1. Question 1

    Identify the correct syntax to select the “Mercedes” option for the below line of code. (Consider driver instance has been created and opened the application of the page)

    <label for="cars">Choose a car:</label>
    <select id="cars">
      <option value="1">Volvo</option>
      <option value="2">Saab</option>
      <option value="3">Mercedes</option>
      <option value="4">Audi</option>
    </select>
    

    • Dropdown=browser.find_element_by_id("cars") select_car=Select(Dropdown) select_car.select_by_value("3")Correct
    • BDropdown=browser.find_element_by_id("cars") select_car=Select(Dropdown) select_car.select_by_index("2")
    • CDropdown=browser.find_element_by_id("cars") select_car=Select(Dropdown) select_car.select_by_value(3)
    • DDropdown=browser.find_element_by_id("cars") select_car=Select(Dropdown) select_car.select_by_index(3)
  2. Question 2

    What will be the output for the below lines of code?

    driver = webdriver.Chrome(executable_path="D \\chromedriver.exe")
    driver.get("http://www.google.com")
    driver.refresh()
    driver.forward()
    driver.get("http://lex.infosysapps.com")
    driver.refresh()
    driver.back()
    windows=driver.window_handles
    print(str(len(windows))+","+driver.current_url)
    

    • 1, http://lex.infosysapps.comCorrect
    • B1, http://www.google.com
    • C2, http://www.google.com
    • D2, http://lex.infosysapps.com
  3. Question 3

    Webdriver manager supports which of the following webdriver API.

    1. GeckoDriver
    2. EdgeDriver
    3. IEDriver
    4. PhantomJS.

    • (i) and (iii)Correct
    • B(i) only
    • C(i), (ii), and (iii)
    • D(i), (ii), (iii) and (iv)
  4. Question 4

    Which of the following is not true regarding implicit wait?

    • An implicit wait tells WebDriver to poll the DOM for a certain amount of time when trying to find any element (or elements) which is not immediately available.Correct
    • BOnce the implicit wait is applied, the implicit wait is set for the life of the WebDriver object.
    • CAn implicit wait tells WebDriver to poll the DOM for a certain amount of time when trying to find all the element (or elements).
    • DThe default wait time of implicit wait time will be in seconds.
  5. Question 5

    What will be the output for the below code? (consider selenium imports are done correctly)

    1.	driver = webdriver.Chrome(executable_path="D:\\chromedriver.exe")
    2.	driver.get_screenshot_as_file("D:\\image1.png")
    3.	driver.get("http://www.google.com")
    4.	driver.get_screenshot_as_file("D:\\image2.png")
    5.	driver.quit()
    

    • Throws compile time exception at line number 2Correct
    • BThrows compile time exception at line number 3
    • CSuccessfully executes the above line of code but only line 4 screenshot will be taken because in line 2 application not yet opened.
    • DSuccessfully executes the above line of code by taking both the screenshot in line 4 and line 2
  6. Question 6

    Which of the following package in python helps for writing the data and formatting the information in excel files with .xls format?

    • XlrdCorrect
    • BXlwt
    • CBoth xlrd and xlwt
    • DXlUtils
  7. Question 7

    From the below lines of code how many test cases will get executed from test suite?

    import unittest
    from TestCases.TestCase1 import Login 
    from TestCases.TestCase2 import SignUp
    if __name__ == "__main__":  
        unittest.main()
       
        tc1=unittest.TestLoader().loadTestsFromTestCase(Login)
        tc2=unittest.TestLoader().loadTestsFromTestCase(SignUp)
        tc3=unittest.TestLoader().loadTestsFromTestCase(Login)
       
        test_suite = unittest.TestSuite([tc1,tc3])  
        unittest.TextTestRunner(verbosity=1).run(test_suite)
    

    • Login executes only onceCorrect
    • BLogin execute twice
    • CThrows run time exception
    • DSignUp and Login will get executed once
  8. Question 8

    What are all the possible unique locators to identify the "Last Name" input field?

    <html>
    <head>
    <title>Login Portal<title>
    </head>
    <body>
    <form id="loginForm">
    <input id="Fname" name="name" type="text" value="First Name" />
    <input id="Lname" name="name" type="text" value="Last Name" />
    <input id="mail" name="email" type="text" value="Business Email" />
    <input name="password" type="password" />
    <input name="continue" type="submit" value="Sign Up" />
    </form>
    </body>
    <html>
    

    • XpathCorrect
    • BName
    • CId
    • DTagname
    • ECss Selector
  9. Question 9

    Tom is a Test Analyst working in an agile project of the banking web application. Due to the unexpected behavior of application during testing, the application frequently throws a random alert message to close the application. Now tom needs to continue the test by discarding the popup message and still he wants to capture the reason from the alert window

    Help tom the correct solution to handle this situation.

    • The Application cannot be tested further until the developer fixes the issue.Correct
    • BHe can accept the alert and start the test from the first.
    • CHe can dismiss the alert and fetch the alert message and then continue for the test execution.
    • DHe can fetch the message and dismiss the alert and then continue for the test execution.
  10. Question 10

    Which of the following statement is correct regarding driver.close() and driver.quit() to close the application after test execution?

    • Using both driver.close() and then driver.quit() for closing one window will throws an compile time exception.Correct
    • BUsing both driver.quit() and then driver.close() for closing one window will throw an compile time exception.
    • CUsing both driver.close() and then driver.quit() for closing one window, will cause the window to be closed and kills the instance of the driver
    • DUsing both driver.quit() and then driver.close() for closing one window, will kills the instance of the driver and close the application
Pricing

Pay once. Clear every cert this year.

One subscription, full Telegram channel access, every PDF posted during your membership.

Monthly
50% OFF
₹1,300₹2,600
Per month · cancel anytime
  • Full access to all 1,357+ certifications
  • Monthly updated question banks
  • Telegram private channel access
  • Cancel anytime
Get Monthly
POPULAR
Quarterly
44% OFF
₹1,800₹3,200
That's ₹600/mo · billed for 3 months
  • Everything in Monthly
  • Save ₹2,100 vs monthly billing
  • Priority answer key requests
  • Best for increasing DQ score fast
Get Quarterly
BEST VALUE
Lifetime
52% OFF
₹2,400₹5,000
One-time · lifetime access
  • Everything in Quarterly
  • Lifetime channel access — no renewals
  • All future certifications included
  • Priority response from admin team
Get Lifetime
FAQ

Common questions, straight answers.

A monthly-updated Telegram channel where we post real exam-pattern question banks and detailed answer keys for 1,357+ Infosys Lex certifications. You join once, you get every PDF posted during your membership.

Right after payment on our Graphy page, you'll receive a private invite link to the Telegram channel. Access is instant — usually under 30 seconds.

We compile question banks from the actual Lex test pattern, sourced and verified by 180K+ community members who've recently cleared these exams. Match rate is consistently 85–95%.

Every single month. When Infosys rolls out new versions of certifications, we post updated dumps within 7–10 days. You'll see channel activity weekly.

Clearing certifications is one of the highest-weighted DQ factors. Members typically clear 3–5 certifications in their first 3 months, which moves DQ scores up by a full band.

i
InfyLexDumps

Independent exam preparation platform for Infosys Lex certifications. Real exam-pattern question banks, monthly updates, 180K+ community members.

Join Premium Telegram
Contact
  • @prepflixadmin
  • admin@prepflix.net
This platform is an independent educational resource and is not affiliated with or endorsed by Infosys Ltd. All certification names referenced are property of their respective owners.
© 2026 InfyLexDumps
Join Premium Telegram