Selenium Using Python Interview Questions
- What is Selenium WebDriver?
- Is Selenium Web Driver Automation Tool?
- What kind of application best suited for Selenium and why it should be selected?
- Why Python is interpreted?
- What are different locators supported in selenium?
- How Can we launch Different browsers using python?
- How Synchronization works in Selenium?
- What is Implicit Wait?
- What is explicit Wait?
- How can enter the values in textbox using python?
- How can we check if control enabled or not?
- How can we get text of a web element?
- Is there any other way of retrieving text of web element?
- What are the different ways of selecting the values in dropdown?
- What are the different Navigation commands in selenium?
- What is the difference b/w findelement and findelements
- Can selenium handle the windows pop up?
- Can selenium handle WebBased Pop Up?
- How can we capture screenshots in selenium?
- What is switch Class in selenium?
- What Action class in selenium?
- How can we perform drag drop in selenium?
- How can mouse hover on a control in selenium?
- Can we move the mouse control to specific coordinate in selenium?
- Write a method to read data from web table for specific row and column index using selenium?
- What are the Python unitTest default methods?
- Can Image or Captcha be automated using selenium?
- How will install selenium in python?
- What is the difference between list and tuple?
- What is pass in python?
- How can we convert string to int in python?
- How will you handle exception in python?
- What are the different data types in python?
- What is MRO in python?
- How will identify when web element doesn't have any of the unique locator?
- What is the difference between link text and partial link text?
- How to execute javascript in selenium with python?
- What are the different way entering value TextBox?
- What is the use of Xpath?
- What is difference between single and double slash in xpath?
- What are the different exception in selenium?
- How will perform double click on web element?
- What is difference between getwindowHandle() and getwindowHandles()?
- How will you handle multiple windows in selenium?
- How will you verify if you have switched between the correct window?
- What is framework?
- How to login into any site if it is showing authentication pop up for username and password?
- How to fetch the current URL in selenium?
- How do we convert a number into a string?
- What are Python decorators?
- What are the tools that help to find bugs or perform static analysis?
- Does python support Multiple inheritance?
- Which of the following functions does return a list of elements
- Which of the following is not a valid webdriver class?
- How to find the length of the list?
- What is namespace in Python?
- What Is Python? What Are The Benefits Of Using Python?
- How Python Can Be Used In Software Testing?
- What Python Frameworks Do You Know?
- What Tools That Helps Python Development Do You Know?
- The Following Is Displayed By A Print Function Call: Yesterday Today Tomorrow Please Write An Example Of A Print Function?
- The Following Is Displayed By A Print Function Call?
- Please Write An Example Of A Print Function?
- What Does The Expression Len(”) Evaluate To?
- Considering The Following Code: S = ‘catandapple’ Write An Expression That Evaluate To ‘apple’?
- Write An Expression That Evaluate To True?
- What Are “tuples”?
- What Are The Rules For Legal Python Names?
- Which Command Do You Use To Exit Help Window Or Help Command Prompt?
- Does The Functions Help() And Dir() List The Names Of All The Built_in Functions And Variables? If No, How Would You List Them?
- Explain How Python Does Compile-time And Run-time Code Checking?
- What Is A “unittest” In Python?
- Define “slicing”?
- What Are Generators In Python?
- Define “docstring”?
- How Do You Copy An Object In Python?
- What Is A “negative Index”?
- How Do You Convert A Number Into A String?
- What Is The Difference Between “xrange” And “range”?
- Define “module” And “package”?
- What Is Pep 8?
- What Is Pickling And Unpickling?
- How Python Is Interpreted?
- How Memory Is Managed In Python?
- Please explain the various Selenium components.
- Could you please state the limitations of Selenium?
- What are the different types of locators in Selenium?
- Can you explain the difference between assert and verify commands in Selenium?
- What do you understand by XPath in Selenium? Can you tell the difference between “/” and “//” in XPath?
- How will you launch the browser using WebDriver?
- Please explain how to find if an element is displayed on the screen?
- What do you mean by Same Origin Policy? How to handle it?
- Do you know how to get a text of a web element using Selenium?
- Please enumerate the various types of Drivers and Waits available in WebDriver?
- What do you understand by Object Repository? How do you create one in Selenium?
- Please explain how to click on a hyperlink using its text?
- What is the most important difference between driver.close() and driver.quit() commands in Selenium?
- How will you find more than one web element in the list using Selenium?
- How will you handle web-based pop-ups in Selenium?
- Can you explain the various types of navigation commands supported by Selenium?
- When should we use findElement() and findElements()?
- What is JUnit? Explain the various JUnit annotations?
- Please explain the various types of Test Automation Frameworks?
- Can Python be used for web client and web server side programming? And which one is best suited to Python?
- Mention at least 3-4 benefits of using Python over the other scripting languages such as Javascript?
- Explain List, Tuple, Set, and Dictionary and provide at least one instance where each of these collection types can be used?
- Does Python allow you to program in a structured style?
- What is PIP software in the Python world?
- What should be the typical build environment for Python based application development?
- What tools can be used to unit test your Python code?
- How does For loop and While loop differ in Python and when do you choose to use them?
- What are data types defined in Python and how much bytes do integer and decimal data types hold?
- How do you make use of Arrays in Python?
- How do you implement JSON given that Python is best suited for the server-side application?
- What is the best way to parse strings and find patterns in Python?
- Which databases are supported by Python?
- What is the purpose of _init_() function in Python?
- What is the significance of ‘self' parameter in an object method? Should we always name this parameter as ‘self'?
- How does Lambda function differ from a normal function in Python?
- How is Exception Handling done in Python?
- What is the starting point of Python code execution?
- Name some of the important modules that are available in Python?
- Which module(s) of Python can be used to measure the performance of your application code?
- How do you launch sub-processes within the main process of a Python application?
- As Python is more suitable for the server-side application, it is very important to have threading implemented in your server code. How can you achieve that in Python?
- Do we need to call the explicit methods to destroy the memory allocated in Python?
- Does the same Python code work on multiple platforms without any changes?
- How can you create a GUI based application in Python for client-side functionality?
- What are the different environment variables identified by Python?
- What is Python Tuples and how is it different from Lists?
- What does ‘#’ symbol do in Python?
- What does stringVar.strip() does?
- What is pass in Python?
- What are membership operators in Python? Write an example to explain both?
- What are generators in Python?
- What is the output of print str[4: ] if str = ‘ Python Language’?
- Write the command to get all keys from the dictionary?
- Write a command to convert a string into an int in python?
- What are a help () and dir() in python?
- What does the term ‘Monkey Patching’ refers to in Python?
- What do you mean by ‘suites’ in Python?
- What is range () in Python? Give an example to explain it?
- What is the difference between abs () and fabs ()?
- What is pickling and unpickling?
- What is a from import statement and write the syntax for it?
- What is the difference between locals() and globals ()?
- What is the use of Assertions in Python?
- What is the difference between ‘match’ and ‘search’ in Python?
- What is the difference between a shallow copy and deep copy?
- Which statement is used in Python if the statement is required syntactically but no action is required for the program?
- What does PEP8 refer to?
- What are *args and *kwargs?
- What is the current version of Python?
- Why Do We Need Waits In Selenium?