Posts

Showing posts from May, 2021

1000 Selenium Interview Questions from basics to advanced

  1000 Selenium Interview Questions from basics to advanced What is Automation Testing?   What is the difference between Manual and Automation Testing? What are the benefits of Automation Testing? Which Test cases needs to be automated? What are the popular test automation tools for functional testing? What is the main purpose of Automation Testing? What is the goal of Automation Testing? Why Selenium should be selected as a Test tool? What is Selenium and what are the different components and versions of Selenium? What are the testing types that can be supported by Selenium? What are the limitations of Selenium? What is the difference between Selenium IDE, Selenium RC and Selenium WebDriver? When should I use Selenium IDE? What are locators, different types of locators that can be used in Selenium and their priorities? What is the difference between Assert and Verify commands? What is an XPath? What is the difference between ‘/’ and ‘//’ in XPath? What is Same Origin Policy a...

Selenium Interview Questions -2

                                      Xpath Interview Questions What is Normalize space in Xpath? Normalize space is used to remove the empty spaces at the ends of the string while using xpath. normalize - space ( string ) str = " cher cher tech " normalize - space ( string ) // outputs "cher cher tech"​ With code example html code < label > who cares about spaces < / label > xpath //label[normalize-space(text())='who cares about spaces'] How do you handle text in XPath which is dynamic? Using the text function, we can find the elements using the text present in them. < button type = "button" > Blueberry < / button > ( Blueberry is text here ) xpath with text : //button[text()='Blueberry']​ But when the text is dynamic we have to use contains function along with text function. For this to work some part of the string must be st...

Selenium WebDriver Questions-1

Image
  Architecture of Selenium Webdriver The architecture of Selenium Webdriver Selenium is a open-source web based automation tool. Selenium enables user to  automate browsers. Selenium supports only web automation, and it doesn't support automation of desktop applications. Let's understand what the components present in the selenium webdriver architecture are. Selenium WebDriver imitates real-world user behavior as closely as possible. Since the real-world user is not able to interact with any invisible element or elements not rendered yet, neither does the web driver. So we need to always make sure that the web element is in the right status before we try to interact with it. Architecture Dotted Lines  represent a class implementing an interface.  Solid Lines  represents class implementing class or Interface implementing the interface. (I) - Interface (c) - class Search Context is the topmost interface in web driver, Webdriver Interface extends the Search Context...