MainMenu

Home Core Java Overview Maven Tutorials

Selenium Interview Question Answer Part 3

1) What is test automation or automation testing?
Automation testing is used to automate the manual testing. It is a process of automating the manual process to test the application/system under test. It uses separate testing tools which facilitate you to create test scripts which can be executed repeatedly and doesn't need any manual intervention.



2) What are the advantages of automation testing?
It supports execution of repeated test cases. It facilitates parallel execution. It aids in testing a large test matrix. It improves accuracy because there are no chances of human errors. It saves time and money.



3) What is selenium?
What are the different components of selenium?
Selenium is one of the most popular automated testing suites. It is browser automation tool which lets you automated operations like click, type and selection from a drop down of a web page. It is designed to support and encourage automation testing of functionalities of web based applications and a wide range of browsers and platforms. It is one of the most accepted tools amongst the testing professional due to its existence in the open source community. Selenium is not just a single tool rather than it is a package of several testing tools and that?
s why it is referred as a suite. Each of these tools is designed to cater different testing and test environment requirement.



4) What is Selenium 1.0?
Selenium 1.0 is popularily known as Selenium Remote Control (Selenium RC). It is a library available in wide variety of languages. The main reason to use Selenium RC was that Selenium IDE was incapable to execute tests in browsers other than Selenium IDE and the limitation of language Selenese used in Selenium IDE.



5) What is Selenium IDE?
Selenium IDE is a firefox plug-in. It is used to record and replay tests in firefox browser. It is used only with firefox browser.



6) What is selenium 2.0?
Selenium 2.0 is a tool which is a combination of web testing tools Selenium RC and WebDriver.



7) Why is selenium selected as a test tool?
Selenium is used as a testing tool because: It is free and open source. It has a large user base and helping communities. Compatible on different platforms i.e. Windows, Mac OS, Linux etc. Have cross browser compatibility (Chrome, Firefox, IE, Safari etc.) Support multiple programming languages ( Java, C#, Ruby, PERL, Python etc.) Support distributed testing.



8) What are selenium supporting testing types?
Selenium supports two types of testing: Functional Testing Regression Testing



9) What are the limitations of selenium?
Selenium has following limitations: It can be used only to test web based application. Mobile applications can not be tested using selenium. You can not test captcha and bar code by using selenium. The user must have the knowledge of programming language for using selenium. Reports can only be generated using third party tools like TestNG or Junit.



10) What is selenese?
Selenese is a lanuage which is used for writing test script in selenium IDE.



11) Describe the different types of locators in Selenium?
Locator is an address which identifies a web element uniquely within the web page. There are different types of locators in Selenium to identify web elements accurately and precisely. These are: ID ClassName Name TagName LinkText PartialLinkText Xpath CSS Selector DOM



12) What is an Xpath?
Xpath is used to locate a web element based on its XML path. It can be used to locate HTML elements.



13) Which is the latest Selenium tool?
The latest Selenium tool is WebDriver.



14) What are the different types of Drivers that WebDriver contains?
These are the different drivers available in WebDriver: FirefoxDriver InternetExplorerDriver ChromeDriver SafariDriver OperaDriver AndroidDriver IPhoneDriver HtmlUnitDriver.



15) What is Selenium Grid?
Selenium Grid facilitates you to distribute your tests on multiple machines and all of them at the same time. So, you can execute tests on Internet Explorer on Windows and Safari on Mac machine using the same text script. It reduces the time of test execution and provides quick feedback.



16) Where the result is seen of Test Execution in Selenium IDE?
The result of test execution is displayed in a Log Window in Selenium IDE.



17) Can you edit tests in Selenium IDE?
Yes, tests in Selenium IDE can be edited. There are two ways to edit tests in Selenium IDE. By Table views Looking into the source code



18) Can you use html id and name while using Selenium IDE?
Yes, You can use html id and name as it is available in Selenium IDE.



19) What are the WebDriver supported Mobile Testing Drivers?
WebDriver supported "mobile testing drivers" are: AndroidDriver IphoneDriver OperaMobileDriver



20) What are the popular programming languages supported by Selenium WebDriver to write Test Cases?
JAVA PHP Python C# Ruby Perl



21) What is the difference between assert and verify commands?
Assert: Assert command checks if the given condition is true or false. If the condition is true, the program control will execute the next phase of testing, and if the condition is false, execution will stop and nothing will be executed. Verify: Verify command also checks if the given condition is true or false. It doesn't halts program execution i.e. any failure during verification would not stop the execution and all the test phases would be executed.



22) What is the difference between "/" and "//" in Xpath?
Single Slash "/": Single slash is used to create Xpath with absolute path. Double Slash "//": Double slash is used to create Xpath with relative path.



23) How to type in a text box using Selenium?
To type in a text box, we use sendKeys("String to be entered") to insert string in the text box. Syntax: WebElement username = drv.findElement(By.id("Email")); // entering username username.sendKeys("sth");



24) What is JUnit?
JUnit is an open source testing framework for java applications. It is introduced by Apache.



25) What are the four parameters that you need to pass in Selenium?
The four parameters that you have to pass in Selenium are: Host Port Number Browser URL



26) How can you "submit" a form using Selenium ?
WebElement el = driver.findElement(By.id("ElementID")); el.submit();



27) What is the difference between close() and quit()?
The close() method closes the current browser only whereas quit() method closes all browsers opened by WebDriver.









61 comments:

  1. Your good knowledge and kindness in playing with all the pieces were very useful. I don’t know what I would have done if I had not encountered such a step like this.

    selenium training in chennai|

    ReplyDelete
  2. Needed to compose you a very little word to thank you yet again regarding the nice suggestions you’ve contributed here.

    Java Training In Bangalore

    ReplyDelete
  3. Needed to compose you a very little word to thank you yet again regarding the nice suggestions you’ve contributed here.

    Data Science Training In Bangalore

    ReplyDelete
  4. Needed to compose you a very little word to thank you yet again regarding the nice suggestions you’ve contributed here"Devops Training in Chennai"

    ReplyDelete
  5. I simply wanted to write down a quick word to say thanks to you for those wonderful tips and hints you are showing on this site.
    hadoop training in chennai

    ReplyDelete
  6. It has been simply incredibly generous with you to provide openly what exactly many individuals would’ve marketed for an eBook to end up making some cash for their end, primarily given that you could have tried it in the event you wanted.

    Data Science Training in Bangalore


    DataScience Training in Chennai



    ReplyDelete
  7. good to be here in your article or post, whatever, I think I should also work hard for my own website like I see some good and updated working in your site.
    CorelDraw Training Institute in Chennai | CorelDraw Training Institute in Velachery



    ReplyDelete
  8. The Information which you provided is very much useful for me. Thank You for Sharing Valuable Information.I like this blog and this is very informative. Keep sharing.
    Graphic Designing Training Institute in Chennai | Photoshop Training Institute in Chennai | Graphics Designing Training Institute in Velachery

    ReplyDelete
  9. Wonderful post! We will be linking to this particularly great article on our
    Site. Keep up the great writing.

    Photoshop Training Institute in Chennai | Photoshop Training Institute in Velachery

    ReplyDelete
  10. I feel very happy to find this blog found so much of stuff which is very useful to me in my future career growth.

    Automation Anywhere Online Training

    Blue Prism Online Training

    Data Science Online Training

    Core Java Online Training

    ReplyDelete
  11. This is the first time i read your blog and admire that you have posted on this...I really found useful.Keep updated.

    CorelDraw Training Institute in Chennai | CorelDraw Training Institute in Velachery

    ReplyDelete
  12. The strategy you posted was nice.Thanks for sharing this great article! That is very interesting Smile
    Photoshop Training Institute in Chennai | Photoshop Training Institute in Velachery

    ReplyDelete
  13. I have read a few of the articles on your website now, and I really like your style. Thanks a million and please keep up the effective work...
    Photoshop Training Institute in Chennai | Photoshop Training Institute in Velachery | Graphics Designing Training Institute in Chennai

    ReplyDelete
  14. Great article, and some good comments too. I agree that commenting on a comment helps both dialogue and traffic, as does visiting the commenter’s site, I’ve found several good sites that way.
    CorelDraw Training Institute in Chennai | Photoshop Training Institute in Chennai | CorelDraw Training Institute in Velachery

    ReplyDelete
  15. It was great, seeing how much I’ve grown and experienced and found in such a short time.
    Really great! Thanks for this article… it really hit home. I like blogging!
    Photoshop Training Institute in Chennai | Graphics Designing Training Institute in Chennai | Photoshop Training Institute in Velachery

    ReplyDelete
  16. Looking great article, I wanna say thank you for sharing the suggestions that you are contributed here.
    Selenium Online Training | Selenium Training

    ReplyDelete
  17. Nice Post! It is really interesting to read from the beginning & I would like to share your blog to my circles, keep your blog as updated.
    Best Graphics Designing Training Institute in Chennai | No.1 Graphics Designing Training Institute in Velachery

    ReplyDelete
  18. In order to leave meaningful blog comments one need to READ, UNDERSTAND and ANALYZE the blog post. Many users without even reading the article..
    Best Photoshop Training Institute in Chennai | CorelDraw Training Institute in Chennai | No.1 Photoshop Training Institute in Velachery

    ReplyDelete
  19. Best interview Question's On Selenium So far.....Can you please Upload Selenium Testing Tutorial interview Questions In your Upcoming Post....

    ReplyDelete
  20. It is amazing and wonderful to visit your site.Thanks for sharing this information,this is useful to me...
    Best Adobe Photoshop Training Institute in Chennai | No.1 Photoshop Training Institute in Chennai

    ReplyDelete
  21. I wish to show thanks to you just for bailing me out of this particular trouble.As a result of checking through the net and meeting techniques that were not productive, I thought my life was done.

    oracletraininginbangalore

    ReplyDelete
  22. this blog is new and informative , it is really interesting and useful too , thanks for sharing this information.
    Best CorelDraw Training Institute in Chennai | No.1 Photoshop Training Institute in Chennai

    ReplyDelete
  23. This is really a great post. Thank you for taking a time to provide us some of the useful and exclusive information with us. Keep on blogging!
    Best Graphics Designing Training Institute in Chennai | No.1 CorelDraw Training Institute in Chennai| Excellent Photoshop Training Institute in Velachery

    ReplyDelete
  24. Updating with the recent skills and applying it is the only tactic to live in our vocation. You have done really a great job by sharing this blog in here. Keep writing blog like this.
    Best Adobe Photoshop Training Institute in Chennai | No.1 CorelDraw Training Institute in Chennai

    ReplyDelete
  25. Your writing style, it was very clear to understand the concept well; I hope you ll keep your blog as updated. thanks for sharing....
    Excellent Graphics Designing Training Institute in Chennai | No.1 CorelDraw Training Institute in Chennai | Perfect Photoshop Training Institute in Velachery

    ReplyDelete
  26. The web site is lovingly serviced and saved as much as date. So it should be, thanks for sharing this with us. Excellent Photoshop Training Institute in Chennai | Perfect CorelDraw Training Institute in Velachery

    ReplyDelete
  27. This is excellent information. It is amazing and wonderful to visit your site.Thanks for sharing this information,this is useful to me...
    Excellent Photoshop Training Institute in Chennai | Best Multimedia Training Institute in Velachery

    ReplyDelete
  28. I believe there are many more pleasurable opportunities ahead for individuals that looked at your site.

    Selenium Training in Chennai

    ReplyDelete
  29. learned something new regards web design from this blog. Thanks for sharing this outstanding article...
    Excellent Vacation Courses in Chennai | Good Summer Course in Guindy

    ReplyDelete
  30. I feel really happy to have seen your webpage and look forward to so many more entertaining times reading here. Thanks once more for all the details.


    rpa Training in Bangalore


    ReplyDelete
  31. Thanks for the information, Useful and interesting. Learned many new things. Keep going
    CorelDraw Training Institute in Chennai | CorelDraw Training Institute in Velachery

    ReplyDelete
  32. Thanks for sharing information with clear explanation. This is really awesome to understand.

    Thanks,
    Selenium Training in Chennai

    ReplyDelete
  33. Good post,Great article Thank you for taking a time to provide us some of the useful and exclusive information with us. Keep on blogging!

    We are the Best software Training institute in Bangalore with real time examples training by real-time experts

    ReplyDelete
  34. Awesome post. Really you are shared very informative concept.. Thank you for sharing. Keep on updating..

    Hardware and Networking Certifications Exam Center in Chennai | No.1 Hardware Training in Adambakkam

    ReplyDelete
  35. This is a wonderful article, Given so much info in it, These type of articles keeps the users interest in the website......
    Cisco Certifications Exam Training Institute in Chennai | Best Cisco Courses in Alandur

    ReplyDelete
  36. Looking very nice article with very useful information.
    Thanks for sharing please do keep updating us...
    Best Software Training Institute in Chennai

    Best Online Training Institute in Chennai

    ReplyDelete
  37. I am happy to find this post Very useful for me, as it contains lot of information. I Always prefer to read The Quality and glad I found this thing in you post.

    selenium training in chennai

    ReplyDelete
  38. Thank you So much, your page is helped us, please update more Selenium Interview Question Answer:
    Best Online Training Institute in Chennai | Best Software Training Institute in Chennai

    ReplyDelete
  39. I am reading your post from the beginning, it was so interesting to read & I feel thanks to you for posting such a good blog, keep updates regularly.
    CompTIA Network Plus Certifications Exam Training in Chennai | Network Plus in Pallavaram

    ReplyDelete
  40. Pretty article! I found some useful information in your blog, it was awesome to read, keep sharing.
    Real Time Project Center in Chennai | Real Time Project in Kanchipuram

    ReplyDelete