Selenium Tutorials 3 - Basic Interview Questions

Veröffentlicht am: 01 April 2019
auf dem Kanal: subbus tech
42
0

Selenium – Basic Interview Questions
What are the testing types that can be supported by Selenium?
1. Functional Testing
2. Regression Testing
What are the limitations of selenium?
1. Selenium supports only web based applications
2. Captcha and Barcode readers can’t be tested with Selenium
3. Reports can only be generated using third party applications like TestNG or Junit
4. As Selenium is a freeware, there is nothing like immediate vendor support. You have to find support from online communities.
What are the types of WebDriver APIs available in Selenium?
1. Firefox Driver
2. Gecko Driver
3. InternetExplorer Driver
4. Chrome Driver
5. HTMLUnit Driver
6. Opera Driver
7. Safari Driver
8. Android Driver
9. iPhone Driver
10. EventFiringWebDriver
Which WebDriver implementation claims to be the fastest?
The fastest implementation of WebDriver is the HTMLUnitDriver. It is because the HTMLUnitDriver does not execute tests in the browser.
What are the Programming Languages supported by Selenium WebDiver?
1. Java
2. C#
3. Python
4. Ruby
5. Perl
6. PHP
What are the Operating Systems supported by Selenium WebDriver?
1. Windows
2. Linux
3. Apple
What are the Open-source Frameworks supported by Selenium WebDriver?
1. JUnit
2. TestNG
How to launch a browser using Selenium WebDriver?
WebDriver is an Interface. We create an Object of a required driver class such as FirefoxDriver, ChromeDriver, InternetExplorerDriver etc.,

To launch Firefox Driver:
WebDriver driver = new FirefoxDriver();

To launch Chrome Driver:
WebDriver driver = new ChromeDriver();

To launch Internet Explorer Driver:
WebDriver driver = new InternetExplorerDriver();

To launch Safari Driver:
WebDriver driver = new SafariDriver();
Is the FirefoxDriver a Class or an Interface?
FirefoxDriver is a Java class, and it implements the WebDriver interface.
Explain the line of code Webdriver driver = new FirefoxDriver(); ?
Webdriver driver = new FirefoxDriver();
‘WebDriver‘ is an interface and we are creating an object of type WebDriver instantiating an object of FirefoxDriver class.
Why do we create like WebDriver driver = new FirefoxDriver(); instead of creating FirefoxDriver driver = new FirefoxDriver?
If we create a reference variable driver of type WebDriver then we could use the same driver variable to work with any browser of our choice such as IEDriver, SafariDriver etc.,
What happens if I run this command. driver.get(“www.softwaretestingmaterial.com”) ;
An exception is thrown. We need to pass HTTP protocol within driver.get() method.
Is it possible to automate the captcha using Selenium?
No. It’s not possible.
List some scenarios which we cannot automate using Selenium WebDriver?
1. Bitmap comparison is not possible using Selenium WebDriver
2. Automating Captcha is not possible using Selenium WebDriver
3. We can not read bar code using Selenium WebDriver
Name different driver classes for different browsers?
ChromeDriver, EdgeDriver, FirefoxDriver, InternetExplorerDriver, OperaDriver
ChromeDriver class is used to run tests on chrome browser.
EdgeDriver class is used to run tests on Microsoft Edge.
FirefoxDriver is used to run tests on Firefox browser.
InternetExplorerDriver is used to run tests on Internet Explorer.
OperaDriver is used to run tests on Opera Browser.


Auf dieser Seite können Sie das Online-Video Selenium Tutorials 3 - Basic Interview Questions mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer subbus tech 01 April 2019 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 42 Mal angesehen und es wurde von 0 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!