dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: Selenium Webdriver Interview Questions

  1. #1
    Join Date
    Jun 2017
    Posts
    3

    Selenium Webdriver Interview Questions

    Selenium Webdriver Interview Questions
    Webdriver Overview

    1)Which of these WebDriver interface methods is used to open a URL in the browser?
    get
    navigate().to
    Any of the above
    None of the above
    Ans: 3

    2)What is the difference between WebDriver close and quit methods?
    Nothing, these methods are interchangeable.
    close method clears the browser memory and the quit method closes the browser window.
    close method closes the browser but the quit method additionally removes the connection to the server.
    close method closes the main browser window but the quit method closes all the browser windows including popups.
    Ans: 4

    3)When invoked on a web element, what does the submit method do?
    It is used to submit a form and it works on any web element.
    It is used to submit a form but it works only on the web element whose type is “submit”.
    It is the same as the click method.
    There is no submit method for a web element.
    Ans: 1

    4)Which WebDriver method is used to change focus to an alert, a web element or a browser window?
    changeFocus
    switchTo
    goTo
    setFocus
    Ans: 2

    5)What functionality does WebDriver support on browser cookies?
    add and delete an individual cookie
    delete all cookies
    Any of the above
    None of the above
    Ans: 3

    6)What is the scope of an implicit wait?
    All instances of WebDriver
    Current WebDriver instance
    Current expected condition
    Current web element
    Ans: 2

    7)What is Selenium Webdriver?
    It is an API
    A tool for writing automated tests of website
    Successor of Selenium RC
    All of the above
    Ans: 4

    8)Which browsers does Webdriver support?
    Chrome
    Internet Explorer
    Firefox Opera
    All of the above
    Ans: 5

    9)What are the advantages of webdriver?
    Unlike RC you don’t have to start a server in webdriver
    Tabs and pops are more or less the same. RC can also handle and Webdriver can also handle.
    Simulate key press events of keyboard.
    Better features for Ajax testing.
    All of the above
    Ans: 5

    10)How to create instance of firefox driver using webdriver?
    driver = new FirefoxDriver();
    driver = FirefoxDriver();
    driver = new Firefox;
    None of the above
    Ans: 1

    or more question and answers **Links removed by Site Staff so it doesn't look like you're spamming us. Please don't post them again.**
    Last edited by Train; 06-16-2017 at 08:12 AM.

  2. #2
    Join Date
    Jun 2017
    Posts
    1
    very helpful thankyou.
    if u want to know more about selenium webdriver **Links removed by Site Staff so it doesn't look like you're spamming us. Please don't post them again.**
    Last edited by Train; 06-20-2017 at 07:27 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles