Selenium Interview Questions in addition to Answers
1) What is Selenium?
• Selenium is a suite of software tools to automate spider web applications.
• Selenium is Open rootage software, anybody tin download in addition to use.
• Selenium supports diverse programming languages (Java, C#, PHP, Perl, Python in addition to Ruby) to elevate exam cases.
• Selenium tin hold upward deployed on Windows, Linux, in addition to Macintosh.
• Selenium Supports Mizilla Firefox, IE, Google Chrome, Opera, Safari etc... browsers to execute exam cases.
2) What are dissimilar components or suite of tools of selenium?
• Selenium IDE
• Selenium Remote Control
• Selenium Grid
• Selenium WebDriver
3) What is Selenium IDE?
Selenium IDE is a Firefox summation that records clicks, typing, in addition to other actions to brand a exam cases, which QA Tester tin play dorsum inwards the Firefox browser or export to Selenium RC.
Selenium IDE has the next features: record/play feature, debugging alongside step-by-step in addition to breakpoints, page abstraction functionality, an extensibility capability allowing the utilization of add-ons or user extensions that expand the functionality of Selenium IDE
4) What are the Features of Selenium IDE?
• Record in addition to playback exam cases in addition to exam suites.
• Intelligent acre pick volition utilization IDs, names, or XPath equally needed
• Auto consummate for all mutual Selenium commands
• Walk through exam cases in addition to exam suites.
• Debug exam cases in addition to ready breakpoints
• Save tests equally HTML, Ruby scripts, or other formats
• Support for Selenium user-extensions.js file
• Option to automatically assert the championship of every page
• Rollup mutual commands
5) What are the limitations of Selenium IDE?
Selenium IDE has many corking features in addition to is a fruitful in addition to well-organized exam automation tool for developing exam cases, inwards the same fourth dimension Selenium IDE is missing sure as shooting vital features of a testing tool: conditional statements, loops, logging functionality, exception handling, reporting functionality, database testing, re-execution of failed tests in addition to screenshots taking capability.
Selenium IDE doesn't for IE, Chrome, Safari in addition to Opera browsers, supports entirely Mozill Firefox Browser.
6) What is Selenium Remote Control (RC) tool?
Selenium Remote Control (RC) is the powerful solution for exam cases that demand to a greater extent than than uncomplicated browser actions in addition to linear execution. Selenium-RC allows the developing of complex exam scenarios similar reading in addition to writing files, querying a database, in addition to emailing exam reports. These tasks tin hold upward achieved past times tweaking exam cases inwards your preferred programming language.
7) What is Selenium Grid?
Selenium Grid extends Selenium RC, Selenium Webdriver to distribute our exam cases across multiple machines, saving our fourth dimension past times running exam cases inwards parallel.
8) How Selenium Grid works?
Selenium Grid sent the tests to the hub. Then tests are redirected to an available Selenium RC, which launch the browser in addition to run the test. Thus, it allows for running tests inwards parallel alongside the entire exam suite.
9) What is Selenium WebDriver?
Selenium WebDriver is a tool for writing automated tests of websites. It is an API holler in addition to aims to mimic the behavior of a existent user, in addition to equally such interacts alongside the HTML of the application. Selenium WebDriver is the successor of Selenium Remote Control which has been officially deprecated.
10) How many browsers are supported past times Selenium Remote Control?
QA Engineer tin utilization Firefox , IE , Safari in addition to Opera browsers to run actual tests inwards Selenium RC.
11) How many programming languages tin yous utilization inwards Selenium RC?
Several programming languages are supported past times Selenium Remote Control - C#, Java, Perl, PHP, Python, Ruby.
12) How many testing framework tin QA Tester utilization inwards Selenium RC?
Testing frameworks aren't required, but they tin hold upward helpful if QA Tester wants to automate exam cases. Selenium RC supports Bromine, JUnit, NUnit, RSpec (Ruby), Test::Unit (Ruby), TestNG (Java), unittest (Python).
13) List out the exam types that are supported past times Selenium?
For spider web based application testing selenium tin hold upward used
The exam types tin hold upward supported are
• Functional
• Regression
For post loose validation alongside continuous integration automation tool could hold upward used
• Jenkins
• Hudson
• Quick Build
• CruiseCont
14) What practise nosotros hateful past times Selenium 1 in addition to Selenium 2?
> Selenium RC in addition to WebDriver, inwards a combination are popularly known equally Selenium 2.0
> Selenium RC solitary is also referred equally Selenium 1.0
15)What are the dissimilar types of Element Locators inwards Selenium?
Element Locator tin hold upward termed equally an address that identifies a spider web chemical element uniquely inside the webpage. Thus, to position spider web elements accurately in addition to exactly nosotros convey dissimilar types of locators inwards Selenium:
• id
• name
• className
• tagName
• linkText
• partialLinkText
• cssSelector
• xpath
16) What is an Xpath?
Xpath is used to locate a spider web chemical element based on its XML path. XML stands for Extensible Mark-up Language in addition to is used to store, organize in addition to carry arbitrary data. It stores information inwards a key-value twosome which is really much similar to HTML tags. Both existence markup languages in addition to since they autumn nether the same umbrella, Xpath tin hold upward used to locate HTML elements.
The fundamental behind locating elements using Xpath is the traversing betwixt diverse elements across the entire page in addition to thence enabling a user to discovery an chemical element alongside reference of only about other element.
17) Explain the departure betwixt unmarried in addition to double slash inwards X-path?
• Single slash ‘/ ’: Single slash (/) commencement pick from the document node. It allows yous to create ‘absolute’ path expressions
• Double Slash ‘// ’: Double slash (//) commencement pick matching anywhere inwards the document. It enables to create ‘relative’ path expressions
18) List out the technical challenges alongside Selenium?
Technical challenges alongside Selenium are,
• Selenium supports entirely spider web based applications
• It does non back upward the Bitmap comparison
• For whatever reporting related capabilities convey to depend on 3rd political party tools
• No vendor back upward for tool compared to commercial tools similar HP UFT
• As in that place is no object repository concept inwards Selenium, maintainability of objects becomes difficult
19) What is selenese?
Selenium ready of commands that run our exam is called Selenese. H5N1 sequence of these commands is a exam script. There are iii types of selenese.
• Actions: They perform only about operations similar clicking a link or typing text inwards text box or selecting an choice from drop-down box etc.
• Assertions: They verify that the position down of application conforms to what is expected. Ex: 'verify that this checkbox is checked', 'make sure as shooting that the page championship is X'.
• Accessors: Checks the position down of application in addition to shop the results inwards a variable. Ex: storeText, storeTitle, etc...
20) What are the Selenese Commands inwards Selenium?
• Clicking a link - click or clickAndWait commands
• Entering values - type command
• Selecting options from a drop-down listing box - choose command
• Clicking checkboxes or radio buttons - click command
21) What is the departure betwixt assert in addition to verify?
When an 'assert' fails, the exam is aborted whereas when 'verify' fails, the exam volition proceed execution logging the failure.
'Assert' is used when the expected value is mandatory to proceed alongside adjacent ready of steps. However 'verify' is used when the expected value is optional to proceed alongside the adjacent ready of steps.
22) What are the advantages of selenium WebDriver?
Selenium WebDriver is really flexible to utilization alongside Java, .Net, Python, Ruby, PHP or Perl languages. QA engineers who convey expert coding skills tin utilization it really effectively.
23) What are the disadvantages of selenium WebDriver over selenium 1.0?
Since selenium webdriver requires coding skills, QA engineers should convey only about noesis of programme evolution inwards Java, .Net, or other languages.
24) What are the dissimilar types of Drivers available inwards Web Driver?
The dissimilar drivers available inwards WebDriver are:
• FirefoxDriver
• InternetExplorerDriver
• ChromeDriver
• SafariDriver
• OperaDriver
• AndroidDriver
• IPhoneDriver
• HtmlUnitDriver
25) What are the dissimilar types of waits available inwards WebDriver?
There are 2 types of waits available inwards WebDriver:
• Implicit Wait
• Explicit Wait
Implicit Wait: Implicit waits are used to render a default waiting fourth dimension (say xxx seconds) betwixt each consecutive exam step/command across the entire exam script. Thus, subsequent exam pace would entirely execute when the xxx seconds convey elapsed later executing the previous exam step/command.
Explicit Wait: Explicit waits are used to stop the execution till the fourth dimension a item status is met or the maximum fourth dimension has elapsed. Unlike Implicit waits, explicit waits are applied for a item example only.
26) Does Selenium back upward mobile mesh testing?
Selenium supports Opera in addition to opera is used inwards nearly of the Smart phones. So whichever Smart telephone supports opera, selenium tin hold upward used to test. So, i tin utilization Selenium RC to run the tests on mobiles.
27) Is it possible to utilization Selenium for multi-user Load Testing?
Yes, but it requires a LOT of hardware. We recommend yous depository fiscal establishment check out Browser Mob, which does charge testing alongside existent browsers in addition to is powered past times Selenium.
28) What is Test Runner?
Test Runner allows yous to run the exam example inwards a browser loaded alongside the Selenium-Core Test Runner. Test runner is invoked past times clicking the below Shown push inwards the IDE.
29) What are the Assertion Statements inwards Selenium?
• assertTextPresent: This volition assert if the text is introduce inwards the page.
• assert Text: This volition assert if a item chemical element is having the item text.
• assertTitle: This volition assert if the page is having a proper title.
• assertValue: This volition assert if a Text box or depository fiscal establishment check box has a item value
• assertElementPresent: This volition assert if a item UI Element is introduce inwards the page.
30) Explain Selenium WaitForCommands?
• waitForPageToLoad: This ascendency volition brand the script to hold off till the page loads. Syntax is waitForPageToLoad(timeout); Time out is the maximum fourth dimension the script volition hold off for the page to load.
• waitForAlert : This ascendency volition hold off for the warning message to appear
• waitForTable: This ascendency volition hold off for the Web tabular array to completely charge inwards the page
• waitForTitle: This ascendency volition for the page Title to seem on the browser.
• Other waitFor commands: Selenium has several other hold off ascendency similar waitForText, waitForPopup in addition to and so on. These commands are generically called Synchronization commands.
31) What is heightened privileges browsers?
The purpose of heightened privileges is similar to Proxy Injection, allows websites to practise something that are non unremarkably permitted. The key departure is that the browsers are launched inwards a particular agency called heightened privileges. By using these browser mode, Selenium centre tin opened upward the AUT straight in addition to also read/write its content without passing the whole AUT through the Selenium RC server.
32) What is i large departure betwixt SilkTest in addition to Selenium, excluding the price?
• SilkTest is a exam automation solution for development, character in addition to trouble organisation teams who demand to deliver software faster.
• With SilkTest yous tin create in addition to execute tests across multiple platforms in addition to devices to ensure that your applications piece of occupation exactly equally intended.
• In Selenium, nosotros create tests alongside Selenium IDE in addition to run it alongside multiple platforms past times using WebDriver.
33) What is the departure betwixt Thread.Sleep() in addition to Selenium.setSpeed ()?
Selenium.setSpeed:
• Takes a unmarried declaration inwards string format. ex: selenium.setSpeed(“2000?) – volition hold off for 2 seconds
• Runs each ascendency inwards later setSpeed delay past times the release of milliseconds mentioned inwards setSpeed.
Thread.sleep:
• Takes a unmarried declaration inwards integer format. Ex: thread.sleep(2000) – volition hold off for 2 seconds
• Waits for entirely in i lawsuit at the ascendency given at sleep.
34) Why testers should opt for Selenium in addition to non UFT?
Selenium is to a greater extent than pop than UFT as
• Selenium is an opened upward rootage whereas UFT is a commercial tool
• Selenium is used particularly for testing spider web based applications piece UFT tin hold upward used for testing customer server application also
• Selenium supports Firefox, IE, Opera, in addition to Safari on operating systems similar Windows, Mac, Linux etc. all the same UFT is limited to Internet Explorer on Windows.
• Selenium supports many programming languages similar Ruby, Perl, Python whereas UFT supports entirely VB script
35) What are the Advantages in addition to Disadvantages of Selenium?
Advantages:
• Supports C#, Java, PHP, Perl, Phython in addition to Ruby languages.
• Supports MS Windows, Linux in addition to Mac OS
• Supports diverse browsers similar Mozilla Firefox, IE, Chrome etc...
• Highly active developer community - backed past times Google
• Powerful methods to locate elements (id, name, Xpath, CSS etc...)
Disadvantages:
• Doesn't back upward Desktop Applications.
• No centralized maintenance of Objects
• Since it is opened upward rootage software, no reliable back upward from anybody.
• Challenges running on browsers other than Firefox
• Difficult to automate AJAX
•
36) What are the Frameworks used inwards Selenium?
• JUnit
• TestNG
37) How to inspect elements inwards Selenium?
• Using Firebug in addition to Firepath plug ins inwards Mozilla Firefox.
• Using Developers tools (Built in) inwards IE in addition to Chrome Browsers.
38) What are the advantages of TestNG framework?
• Grouping Test cases
• Generating HTML exam reports
• Data Driven Testing
• Parallel Testing etc...
Sumber http://www.gcreddy.com/
1) What is Selenium?
• Selenium is a suite of software tools to automate spider web applications.
• Selenium is Open rootage software, anybody tin download in addition to use.
• Selenium supports diverse programming languages (Java, C#, PHP, Perl, Python in addition to Ruby) to elevate exam cases.
• Selenium tin hold upward deployed on Windows, Linux, in addition to Macintosh.
• Selenium Supports Mizilla Firefox, IE, Google Chrome, Opera, Safari etc... browsers to execute exam cases.
2) What are dissimilar components or suite of tools of selenium?
• Selenium IDE
• Selenium Remote Control
• Selenium Grid
• Selenium WebDriver
3) What is Selenium IDE?
Selenium IDE is a Firefox summation that records clicks, typing, in addition to other actions to brand a exam cases, which QA Tester tin play dorsum inwards the Firefox browser or export to Selenium RC.
Selenium IDE has the next features: record/play feature, debugging alongside step-by-step in addition to breakpoints, page abstraction functionality, an extensibility capability allowing the utilization of add-ons or user extensions that expand the functionality of Selenium IDE
4) What are the Features of Selenium IDE?
• Record in addition to playback exam cases in addition to exam suites.
• Intelligent acre pick volition utilization IDs, names, or XPath equally needed
• Auto consummate for all mutual Selenium commands
• Walk through exam cases in addition to exam suites.
• Debug exam cases in addition to ready breakpoints
• Save tests equally HTML, Ruby scripts, or other formats
• Support for Selenium user-extensions.js file
• Option to automatically assert the championship of every page
• Rollup mutual commands
5) What are the limitations of Selenium IDE?
Selenium IDE has many corking features in addition to is a fruitful in addition to well-organized exam automation tool for developing exam cases, inwards the same fourth dimension Selenium IDE is missing sure as shooting vital features of a testing tool: conditional statements, loops, logging functionality, exception handling, reporting functionality, database testing, re-execution of failed tests in addition to screenshots taking capability.
Selenium IDE doesn't for IE, Chrome, Safari in addition to Opera browsers, supports entirely Mozill Firefox Browser.
6) What is Selenium Remote Control (RC) tool?
Selenium Remote Control (RC) is the powerful solution for exam cases that demand to a greater extent than than uncomplicated browser actions in addition to linear execution. Selenium-RC allows the developing of complex exam scenarios similar reading in addition to writing files, querying a database, in addition to emailing exam reports. These tasks tin hold upward achieved past times tweaking exam cases inwards your preferred programming language.
7) What is Selenium Grid?
Selenium Grid extends Selenium RC, Selenium Webdriver to distribute our exam cases across multiple machines, saving our fourth dimension past times running exam cases inwards parallel.
8) How Selenium Grid works?
Selenium Grid sent the tests to the hub. Then tests are redirected to an available Selenium RC, which launch the browser in addition to run the test. Thus, it allows for running tests inwards parallel alongside the entire exam suite.
9) What is Selenium WebDriver?
Selenium WebDriver is a tool for writing automated tests of websites. It is an API holler in addition to aims to mimic the behavior of a existent user, in addition to equally such interacts alongside the HTML of the application. Selenium WebDriver is the successor of Selenium Remote Control which has been officially deprecated.
10) How many browsers are supported past times Selenium Remote Control?
QA Engineer tin utilization Firefox , IE , Safari in addition to Opera browsers to run actual tests inwards Selenium RC.
11) How many programming languages tin yous utilization inwards Selenium RC?
Several programming languages are supported past times Selenium Remote Control - C#, Java, Perl, PHP, Python, Ruby.
12) How many testing framework tin QA Tester utilization inwards Selenium RC?
Testing frameworks aren't required, but they tin hold upward helpful if QA Tester wants to automate exam cases. Selenium RC supports Bromine, JUnit, NUnit, RSpec (Ruby), Test::Unit (Ruby), TestNG (Java), unittest (Python).
13) List out the exam types that are supported past times Selenium?
For spider web based application testing selenium tin hold upward used
The exam types tin hold upward supported are
• Functional
• Regression
For post loose validation alongside continuous integration automation tool could hold upward used
• Jenkins
• Hudson
• Quick Build
• CruiseCont
14) What practise nosotros hateful past times Selenium 1 in addition to Selenium 2?
> Selenium RC in addition to WebDriver, inwards a combination are popularly known equally Selenium 2.0
> Selenium RC solitary is also referred equally Selenium 1.0
15)What are the dissimilar types of Element Locators inwards Selenium?
Element Locator tin hold upward termed equally an address that identifies a spider web chemical element uniquely inside the webpage. Thus, to position spider web elements accurately in addition to exactly nosotros convey dissimilar types of locators inwards Selenium:
• id
• name
• className
• tagName
• linkText
• partialLinkText
• cssSelector
• xpath
16) What is an Xpath?
Xpath is used to locate a spider web chemical element based on its XML path. XML stands for Extensible Mark-up Language in addition to is used to store, organize in addition to carry arbitrary data. It stores information inwards a key-value twosome which is really much similar to HTML tags. Both existence markup languages in addition to since they autumn nether the same umbrella, Xpath tin hold upward used to locate HTML elements.
The fundamental behind locating elements using Xpath is the traversing betwixt diverse elements across the entire page in addition to thence enabling a user to discovery an chemical element alongside reference of only about other element.
17) Explain the departure betwixt unmarried in addition to double slash inwards X-path?
• Single slash ‘/ ’: Single slash (/) commencement pick from the document node. It allows yous to create ‘absolute’ path expressions
• Double Slash ‘// ’: Double slash (//) commencement pick matching anywhere inwards the document. It enables to create ‘relative’ path expressions
18) List out the technical challenges alongside Selenium?
Technical challenges alongside Selenium are,
• Selenium supports entirely spider web based applications
• It does non back upward the Bitmap comparison
• For whatever reporting related capabilities convey to depend on 3rd political party tools
• No vendor back upward for tool compared to commercial tools similar HP UFT
• As in that place is no object repository concept inwards Selenium, maintainability of objects becomes difficult
19) What is selenese?
Selenium ready of commands that run our exam is called Selenese. H5N1 sequence of these commands is a exam script. There are iii types of selenese.
• Actions: They perform only about operations similar clicking a link or typing text inwards text box or selecting an choice from drop-down box etc.
• Assertions: They verify that the position down of application conforms to what is expected. Ex: 'verify that this checkbox is checked', 'make sure as shooting that the page championship is X'.
• Accessors: Checks the position down of application in addition to shop the results inwards a variable. Ex: storeText, storeTitle, etc...
20) What are the Selenese Commands inwards Selenium?
• Clicking a link - click or clickAndWait commands
• Entering values - type command
• Selecting options from a drop-down listing box - choose command
• Clicking checkboxes or radio buttons - click command
21) What is the departure betwixt assert in addition to verify?
When an 'assert' fails, the exam is aborted whereas when 'verify' fails, the exam volition proceed execution logging the failure.
'Assert' is used when the expected value is mandatory to proceed alongside adjacent ready of steps. However 'verify' is used when the expected value is optional to proceed alongside the adjacent ready of steps.
22) What are the advantages of selenium WebDriver?
Selenium WebDriver is really flexible to utilization alongside Java, .Net, Python, Ruby, PHP or Perl languages. QA engineers who convey expert coding skills tin utilization it really effectively.
23) What are the disadvantages of selenium WebDriver over selenium 1.0?
Since selenium webdriver requires coding skills, QA engineers should convey only about noesis of programme evolution inwards Java, .Net, or other languages.
24) What are the dissimilar types of Drivers available inwards Web Driver?
The dissimilar drivers available inwards WebDriver are:
• FirefoxDriver
• InternetExplorerDriver
• ChromeDriver
• SafariDriver
• OperaDriver
• AndroidDriver
• IPhoneDriver
• HtmlUnitDriver
25) What are the dissimilar types of waits available inwards WebDriver?
There are 2 types of waits available inwards WebDriver:
• Implicit Wait
• Explicit Wait
Implicit Wait: Implicit waits are used to render a default waiting fourth dimension (say xxx seconds) betwixt each consecutive exam step/command across the entire exam script. Thus, subsequent exam pace would entirely execute when the xxx seconds convey elapsed later executing the previous exam step/command.
Explicit Wait: Explicit waits are used to stop the execution till the fourth dimension a item status is met or the maximum fourth dimension has elapsed. Unlike Implicit waits, explicit waits are applied for a item example only.
26) Does Selenium back upward mobile mesh testing?
Selenium supports Opera in addition to opera is used inwards nearly of the Smart phones. So whichever Smart telephone supports opera, selenium tin hold upward used to test. So, i tin utilization Selenium RC to run the tests on mobiles.
27) Is it possible to utilization Selenium for multi-user Load Testing?
Yes, but it requires a LOT of hardware. We recommend yous depository fiscal establishment check out Browser Mob, which does charge testing alongside existent browsers in addition to is powered past times Selenium.
28) What is Test Runner?
Test Runner allows yous to run the exam example inwards a browser loaded alongside the Selenium-Core Test Runner. Test runner is invoked past times clicking the below Shown push inwards the IDE.
29) What are the Assertion Statements inwards Selenium?
• assertTextPresent: This volition assert if the text is introduce inwards the page.
• assert Text: This volition assert if a item chemical element is having the item text.
• assertTitle: This volition assert if the page is having a proper title.
• assertValue: This volition assert if a Text box or depository fiscal establishment check box has a item value
• assertElementPresent: This volition assert if a item UI Element is introduce inwards the page.
30) Explain Selenium WaitForCommands?
• waitForPageToLoad: This ascendency volition brand the script to hold off till the page loads. Syntax is waitForPageToLoad(timeout); Time out is the maximum fourth dimension the script volition hold off for the page to load.
• waitForAlert : This ascendency volition hold off for the warning message to appear
• waitForTable: This ascendency volition hold off for the Web tabular array to completely charge inwards the page
• waitForTitle: This ascendency volition for the page Title to seem on the browser.
• Other waitFor commands: Selenium has several other hold off ascendency similar waitForText, waitForPopup in addition to and so on. These commands are generically called Synchronization commands.
31) What is heightened privileges browsers?
The purpose of heightened privileges is similar to Proxy Injection, allows websites to practise something that are non unremarkably permitted. The key departure is that the browsers are launched inwards a particular agency called heightened privileges. By using these browser mode, Selenium centre tin opened upward the AUT straight in addition to also read/write its content without passing the whole AUT through the Selenium RC server.
32) What is i large departure betwixt SilkTest in addition to Selenium, excluding the price?
• SilkTest is a exam automation solution for development, character in addition to trouble organisation teams who demand to deliver software faster.
• With SilkTest yous tin create in addition to execute tests across multiple platforms in addition to devices to ensure that your applications piece of occupation exactly equally intended.
• In Selenium, nosotros create tests alongside Selenium IDE in addition to run it alongside multiple platforms past times using WebDriver.
33) What is the departure betwixt Thread.Sleep() in addition to Selenium.setSpeed ()?
Selenium.setSpeed:
• Takes a unmarried declaration inwards string format. ex: selenium.setSpeed(“2000?) – volition hold off for 2 seconds
• Runs each ascendency inwards later setSpeed delay past times the release of milliseconds mentioned inwards setSpeed.
Thread.sleep:
• Takes a unmarried declaration inwards integer format. Ex: thread.sleep(2000) – volition hold off for 2 seconds
• Waits for entirely in i lawsuit at the ascendency given at sleep.
34) Why testers should opt for Selenium in addition to non UFT?
Selenium is to a greater extent than pop than UFT as
• Selenium is an opened upward rootage whereas UFT is a commercial tool
• Selenium is used particularly for testing spider web based applications piece UFT tin hold upward used for testing customer server application also
• Selenium supports Firefox, IE, Opera, in addition to Safari on operating systems similar Windows, Mac, Linux etc. all the same UFT is limited to Internet Explorer on Windows.
• Selenium supports many programming languages similar Ruby, Perl, Python whereas UFT supports entirely VB script
35) What are the Advantages in addition to Disadvantages of Selenium?
Advantages:
• Supports C#, Java, PHP, Perl, Phython in addition to Ruby languages.
• Supports MS Windows, Linux in addition to Mac OS
• Supports diverse browsers similar Mozilla Firefox, IE, Chrome etc...
• Highly active developer community - backed past times Google
• Powerful methods to locate elements (id, name, Xpath, CSS etc...)
Disadvantages:
• Doesn't back upward Desktop Applications.
• No centralized maintenance of Objects
• Since it is opened upward rootage software, no reliable back upward from anybody.
• Challenges running on browsers other than Firefox
• Difficult to automate AJAX
•
36) What are the Frameworks used inwards Selenium?
• JUnit
• TestNG
37) How to inspect elements inwards Selenium?
• Using Firebug in addition to Firepath plug ins inwards Mozilla Firefox.
• Using Developers tools (Built in) inwards IE in addition to Chrome Browsers.
38) What are the advantages of TestNG framework?
• Grouping Test cases
• Generating HTML exam reports
• Data Driven Testing
• Parallel Testing etc...