Practical Interview Questions On Selenium Asked In Interview - All About Testing Practical Interview Questions On Selenium Asked In Interview

Friday 26 May 2017

Practical Interview Questions On Selenium Asked In Interview

Scenario 1 -
           There is a submit button in the page it has an id property. By using id we got element not found an exception, how will you handle this situation? What might be the problem in this case?

Scenario 2 -
           If submit button contain in one of three frames in the page, how will you handle this.

Scenario 3 -
           Manually you opened a Firefox browser window with Gmail login, now with selenium, you opened a Firefox browser window with Facebook login. What happens when we use quit method? Will it close all windows including Gmail one?

Scenario 4 -
           There are two methods in same class with the same name with different arguments and different access modifiers.
Like,
     public void m1(int a){}
     public void m1(string b){}
Is it overloading or not ?

Scenario 5 -
           There are 10 pages in the same window, an image is present in any page out of ten pages in the same window. How will you validate this scenario?

Scenario 6 -
           The Same image present in ten pages how do you check same image present on each page or not. how will you validate this scenario?

Scenario 7 -
           There are ten dropdowns in the page with the same name.In one of the dropdowns, i have an option called cts employee. How to select that particular option out of ten dropdowns in the page ? What is your approach?

Scenario 8 - 
           There is a grid table 1st columns contains links with same names in all rows. 2nd columns contain different name of those links present in the 1st column. Now base on 2nd column clicks on required link in a 1st column how will you do it.

Scenario 9 -
            <table
                 <tr
                     <td
                      <td
          Now based on 2nd td tag find tr tag element. Write XPath for it.

Scenario 10 -
          If there is an element which contains id attribute, that id is split into two parts by '_' (underscore), the first part is constant and second part is changing. how do you find that element using id?

Scenario 11 -
          There is a link on a webpage, click on that link a window will open and now that opened window contains three different frames and you have to do the operation on different elements in 3 frames and come back to the window. How will you do this?

2 comments:

  1. Amazing, thanks a lot my friend, I was also siting like a your banner image when I was thrown into Selenium.When I started learning then I understood it has got really cool stuff.
    I can vouch webdriver has proved the best feature in Selenium framework.
    Thanks a lot for taking a time to share a wonderful article.


    Selenium Training in Velachery | Selenium Training Course

    ReplyDelete