Advanced Selenium Webdriver Interview Questions and Answers in Java
![]() |
| Selenium WebDriver – QA |
Here is the list of Selenium Interview questions and answers.
How to read data from table?
You can easily read the data from table using findElements method.
Find all the table cells using TD tag and then get the text inside each cell by getText() method or innerText property in HTML DOM.
What all browsers and OS are supported by Selenium?
Selenium supports below browsers.
- Internet Explorer
- Google Chrome
- Firefox
- Safari
- Opera
- Android browser
- iPhone Browser
Operating systems supported by Selenium are –
- All Windows OS
- Linux
- Mac (Apple OS)
- Android
- IOS
Various Synchronization methods in Selenium Webdriver – implicit wait,
page load timeout, explicit wait?
page load timeout, explicit wait?
There are 4 ways we can handle synchronization in Selenium.
- Implicit
- Explicit using wait and expected conditions
- Browser Navigation timeout
- Script time out
How to take screenshot in Selenium?
Selenium provides an interface called TakesScreenshot which has a method getScreenShotAs which can be used to take a screenshot of the application under test.
How to execute JavaScript in Selenium? How many arguments
can be passed to executeScript method?
can be passed to executeScript method?
Selenium webdriver API provides one interface called
JavascriptExecutor with a method called executeScript.
This method has 2 main arguments.
First argument is the javascript code you want to execute on current page and second argument is optional but important.
We can pass variable number of web elements as an arguments which can be manipulated in javascript code passed in the first argument.
JavascriptExecutor with a method called executeScript.
This method has 2 main arguments.
First argument is the javascript code you want to execute on current page and second argument is optional but important.
We can pass variable number of web elements as an arguments which can be manipulated in javascript code passed in the first argument.
How to handle multiple browser windows and frames?
We can easily work with multiple windows and frames by switching to them.
We can find all open windows in selenium using getWindowhandles method.
We can find frame in the web page using name, id or any other method like css or xpath selectors.
We can find all open windows in selenium using getWindowhandles method.
We can find frame in the web page using name, id or any other method like css or xpath selectors.
How to drag and drop in Selenium Webdriver?
Selenium webdriver provides Actions class which has many methods to support complex user actions like contextClick, doubleClick, dragAndDrop.
How to use Selenium Grid?
Selenium grid is used to execute selenium scripts on various environments (OS and browsers) simultaneously and on different machines.
Hub acts as a central server which sends the execution requests to the other machines called as nodes.
Hub acts as a central server which sends the execution requests to the other machines called as nodes.
Hub server and node server must be up and running.
Node machine must be registered with HUB. Depending upon the webdriver capabilities, HUB routes the request to appropriate node to execute the scripts.
Node machine must be registered with HUB. Depending upon the webdriver capabilities, HUB routes the request to appropriate node to execute the scripts.
Challenges, issues and limitations of Selenium tool?
How to handle Captcha?
We can not handle captcha in Selenium. We can not also automate
the Adobe Flash contents on webpages. These are some of the limitations of Selenium.
the Adobe Flash contents on webpages. These are some of the limitations of Selenium.
Other common issues are –
- Certificate Errors in IE
- Protect mode error
- Browser zoom error in IE
- Canvas image map
- Unsupported command line flag – ignore certificates warning in Chrome
What is the page object model in Selenium?
Page object model is an alternative way to handle automation project.
Write a complex xpath or css expression? Which one is better?
xpath and css can be used to find any element on the web page.
Most of the engineers prefer writing xpath expressions as finding r
elative elements is very easy in xpath.
xpath and css can be used to find any element on the web page.
Most of the engineers prefer writing xpath expressions as finding r
elative elements is very easy in xpath.
How to upload files using AUTOIT Script, Robot?
We can use AUTOIT/Robot/Sikuli code to handle the window dialogs
which are not supported by web driver.
which are not supported by web driver.
Flash automation, silverlight Automation?
Selenium has no support for these controls. We need to use third party tools to automate these apps.
How to format date and time in Selenium in Java? How to compare dates?
We can format date in selenium using DateFormat object.
How to append a data to file in Selenium?
We can use File and FileWriter class to work with files in Selenium Webdriver.
Frameworks in Selenium – Data driven, Hybrid, Keyword,
BDD – Cucumber, TestNG?
Frameworks are used to speed up the automation testing by
developing the test data, reusable functions and reports.
developing the test data, reusable functions and reports.
Database testing in Selenium?
We can use JDBC driver to connect to any database in Java.
How to work with Excel files in Selenium?
We can use JXL or POI library to work with excel files in Selenium.
Find total time of execution in Selenium?
If we are using custom library, we can log the start and end time
of the execution and then find the total execution time by
subtracting end time from start time.
of the execution and then find the total execution time by
subtracting end time from start time.
How to schedule the Test Suite Execution?
We can schedule the test suite execution using CI tools like
hudson(Jenkins), Bamboo. Alternatively, we can use windows
scheduler to launch the test execution.
hudson(Jenkins), Bamboo. Alternatively, we can use windows
scheduler to launch the test execution.
How to send an email stating the execution status to all stakeholders in Selenium?
We can send mail in Java using javax.mail library.
What is the difference between findElement and findElements?
findElement returns the first matching element. If element is not found, NoElementFoundException is thrown. findElements
returns the list of matching web elements.
If no element is found, empty list is returned. Exception is not thrown.
returns the list of matching web elements.
If no element is found, empty list is returned. Exception is not thrown.
What is the difference between Junit and TestNG. What are the various annotations and features?
TestNG is the new generation testing framework with lot of new
useful features as compared to old Junit framework.
Using TestNG, we can run the tests in parallel.
useful features as compared to old Junit framework.
Using TestNG, we can run the tests in parallel.
Automation of Android apps and Android Browsers using Selenium possible?
We can use Appium and Selendroid tools to automate mobile applications.
How to handle Ajax calls in Selenium?
When working with Ajax calls, we must be very careful to handle StaleElementStateException. This exception occurs
when we refer to the stale (Old) element on page.
To handle this error, we need to find the element again after ajax load new elements in the page.
When working with Ajax calls, we must be very careful to handle StaleElementStateException. This exception occurs
when we refer to the stale (Old) element on page.
To handle this error, we need to find the element again after ajax load new elements in the page.
Difference between Selenium and QTP. Competitors to Selenium Webdriver?
QTP is a licensed tool supporting automation of lot of applications based on .Net, Java, Web and much more. Selenium is a free tool and supports only web application automation testing.
What is desired capabilities?
Capabilities are used to set the values of the browser attributes
before we launch any browser using selenium web driver.
before we launch any browser using selenium web driver.
Version control tools like SVN, GIT?
We use version control tools like SVN to track the changes to
the files in a project and work in collaboration.
the files in a project and work in collaboration.
Build tools – Ant, Maven?
We use these tools to manage build activities for the Java project.
CI tools – Jenkin, Bamboo?
These are continuous integration tools helping in quick
deployment of applications, testing them and reporting the issues in the code before it is too late.
It helps in getting the application into production quickly and with more quality confidence.
How to identify the frame which does not have Id as well as name?
We can identify the frame using xpath or css selectors as well.
What is the alternative to sendkeys?
We can use JavaScriptExecutor to work with html controls.
How to press TAB key in Selenium?
We can press any keyboard key using Keys class.
What are the Exception that may occur in Selenium Webdriver
Selenium may throw below exceptions.
- InvalidElementStateException
- StaleElementReferenceException
- ElementNotFoundException
- ElementNotVisibleException
For any feedback, feel free to reach me. You can write to me at naveenanimation20@gmail.com
Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
Follow me on my Facebook Page:

It's interesting that many of the bloggers to helped clarify a few things for me as well as giving.Most of ideas can be nice content.The people to give them a good shake to get your point and across the command.
software testing course in chennai
It is very useful information. It will help to improve my knowledge in Selenium. Thank you for sharing this awesome site.
Selenium Training in Chennai | Selenium Training | Selenium Course in Chennai | Selenium Training Institute in Chennai
Excellent information with unique content and it is very useful to know about the information based on blogs.
Java training in chennai
Yiioverflow presenting one of the best and high performance PHP framework. Fast, secure and extremely professionals are developing applications. We guide to implement mobile app development and SOA hybrid applications.Code in Nodejs, Angular,Ionic,ReactJS and Yiiframework.
Good informations It mayt be Helpfull for me thanks alot for sharing
Learn Online DevOps Training
Salesforce Online Training in Bangalore
Nice post keep do posting The Info was too good
Best Amazon web Services Training Hyderabad
Salesforce Online Training in Bangalore
I think this is the best article today. Thanks for taking your own time to discuss this topic, I feel happy about that curiosity has increased to learn more about this topic. Keep sharing your information regularly for my future reference.
Java Courses in chennai
I wish to indicate because of you only to bail me out of this specific trouble. As a consequence of checking through the net and meeting systems that were not beneficial, I thought my life was finished.
fire and safety engineering course in chennai
Thanks for sharing with us, This article gives more useful information to me. Great post keep updating.
Regards,
Selenium Training in Chennai
Woww Thank you for the amazing information u have shared. that was very useful for me. do share more information.
Click the link to know more exciting information.
Selenium Training in chennai
This content was very useful and informative. POst more information.
You can also refer for more job related information
Selenium Training and Placement
Wonderful post!!Thank you for sharing this info with us.
Keep updating I would like to know more updates on this topic
Very useful content, I would like to suggest this blog to my friends.
Selenium training Chennai
software testing selenium training
I have read your blog completely. It is very impressive one for all the viewers. Thanks for sharing this blog.
selenium training in chennai
Nice post.Thank you so much for sharing.Yiioverflow is a web development company.We have well expert team in Angular JS, Ionic, Yii Framework, Node JS, Laravel, PHP, MySQL, and WordPress.If you want a developer visit.. https://yiioverflow.com/
It is very useful for all. Thank you for sharing with us.
Selenium Training in Chennai | Selenium Training Institute in Chennai
Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.
Python Training in electronic city
DataScience with Python Training in electronic city
AWS Training in electronic city
Big Data Hadoop Training in electronic city
Devops Training in electronic city
Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.
Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.
selenium training in chennai
I admire this article for the well-researched content and excellent wording. I got so involved in this material that I couldn’t stop reading. I am impressed with your work and skill. Thank you so much.
HTML Training in Chennai
it is an awesome article.it is so informative and i can learn more about selenium.<a href="http://www.slajobs.com/selenium-training-in-chennai.php>best selenium training in chennai</a>
This article is very much helpful and i hope this will be an useful information for the needed one.Keep on updating these kinds of informative things… Nice article Thanks for sharing this article Wonderful information from this website Thanks !!!
Embedded System training in Chennai
PLC training institute in Chennai
Selenium testing training is the future of automation testing and there are several institutes across India which provide proper training. There are several institutes which provide Selenium Testing Training in Hyderabad.
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.
Hadoop Training in Chennai
Hadoop Training in Bangalore
Big data training in tambaram
Big data training in Sholinganallur
Big data training in annanagar
Big data training in Velachery
Big data training in Marathahalli
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.
Devops Training in Chennai
Devops Training in Bangalore
Devops Training in pune
The Best Java Classes in Ahmedabad providing with Java classes and is the Leading Core Java J2EE Training Institute in Ahmedabad.
Core Java training in Ahmedabad
Inspiring writings and I greatly admired what you have to say , I hope you continue to provide new ideas for us all and greetings success always for you..Keep update more information..
rpa training in Chennai | rpa training in pune
rpa training in tambaram | rpa training in sholinganallur
rpa training in Chennai | rpa training in velachery
rpa online training | rpa training in bangalore
A good blog always comes-up with new and exciting information and while reading I have feel that this blog is really have all those quality that qualify a blog to be a one.I wanted to leave a little comment to support you and wish you a good continuation. Wishing you the best of luck for all your blogging efforts read this.
python online training
python training in chennai
I read this post two times, I like it so much, please try to keep posting & Let me introduce other material that may be good for our community.
java online training | java training in pune
java training in chennai | java training in bangalore
Inspiring writings and I greatly admired what you have to say , I hope you continue to provide new ideas for us all and greetings success always for you..Keep update more information..
Inspiring writings and I greatly admired what you have to say , I hope you continue to provide new ideas for us all and greetings success always for you..Keep update more information..
selenium training in bangalore
aws training in bangalore
UiPath Training in Bangalore by myTectra is one the best UiPath Training. myTectra is the market leader in providing Robotic Process Automation on UiPath
ui path training in bangalore
Thanks for making me this article. You have done a great job by sharing this content in here. Keep writing article like this.
Mobile Apps Training
Mobile Apps Training in Chennai
Good informations It mayt be Helpfull for me thanks alot for sharing
SAP SD Training From India
SAP Security Training From India
Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.
Best Splunk Online Training From India
Best Dellboomi Online Training From India
Inspiring writings and I greatly admired what you have to say , I hope you continue to provide new ideas for us all and greetings success always for you..Keep update more information..
Oracle Rac Training Videos
AWS Training Videos
It is amazing and wonderful to visit your site.Thanks for sharing this information,this is useful to me…
Data Science training in rajaji nagar | Data Science with Python training in chenni
Data Science training in electronic city | Data Science training in USA
Data science training in pune | Data science training in kalyan nagar
Amazing Article ! I have bookmarked this article page as i received good information from this. All the best for the upcoming articles. I will be waiting for your new articles. Thank You ! Kindly Visit Us @ Coimbatore Travels | Ooty Travels | Coimbatore Airport Taxi
Nice information thank you,if you want more information please visit our link selenium Online Training Hyderabad
Selenium is one of the most popular automated testing tool used to automate various types of applications. Selenium is a package of several testing tools designed in a way for to support and encourage automation testing of functional aspects of web-based applications and a wide range of browsers and platforms and for the same reason, it is referred to as a Suite.
Selenium Interview Questions and Answers
Javascript Interview Questions
Human Resource (HR) Interview Questions
I have read your blog its very attractive and impressive. I like your blog Java online training Bangalore
I read this post two times, I like it so much, please try to keep posting & Let me introduce other material that may be good for our community.
angularjs Training in chennai
angularjs Training in chennai
angularjs-Training in tambaram
angularjs-Training in sholinganallur
angularjs-Training in velachery
An informative article that takes me to the next level of reading. Thanks for sharing.
Selenium Training in Chennai
Selenium Training
iOS Training in Chennai
iOS Training Institutes in Chennai
Digital Marketing Course
Digital Marketing Course in Chennai
This blog was very helpful to me. kindly keep continuing the great work.
Japanese Classes in Chennai
Japanese Language Classes in Chennai
Japanese Language Course in Chennai
Japanese Coaching Center near me
IELTS Classes in Chennai
Best IELTS Courses in Chennai
IELTS in Chennai
Your blog is very attractive. I much thanks for your great article. I want more updating keep it up….
SEO Course in Velachery
SEO Training in Chennai Velachery
SEO Training in Tnagar
SEO Training in Tambaram
SEO Course in Kandanchavadi
SEO Training in Sholinganallur
Really awesome information!!! Thanks for your information.
IELTS General Training
ielts general training
IELTS Learning
IELTS Institute
Very well written blog and I always love to read blogs like these because they offer very good information to readers with very less amount of words….thanks for sharing your info with us and keep sharing.
python course in pune | python course in chennai | python course in Bangalore
Great and Informative Blog. Your style of writing is very unique. Thanks for Posting.
IELTS coaching in Chennai
IELTS Training in Chennai
IELTS coaching centre in Chennai
Best IELTS coaching in Chennai
IELTS classes in Chennai
Best IELTS coaching centres in Chennai
IELTS Centre in Chennai
Thanks for taking time to share this selenium interview questions with answers. It is really helpful. Share more like this.
DevOps Training in Chennai
DevOps course in Chennai
DevOps course
RPA Training in Chennai
Blue Prism Training in Chennai
UiPath Training in Chennai
I found your blog while searching for the updates, I am happy to be here. Very useful content and also easily understandable providing.. Believe me I did wrote an post about tutorials for beginners with reference of your blog.
excel advanced excel training in bangalore | Devops Training in Chennai
Nice way of expressing your ideas with us.
thanks for sharing with us and please add more information's.
learn german language in bangalore
german language in bangalore
German Course in Anna Nagar
German Courses in T nagar
Learned a lot from your blog. Good creation and hats off to the creativity of your mind. Share more like this.
Corporate Training Companies in Chennai | Corporate Training Institute in Chennai | Corporate Training Institute in Adyar | Corporate Training Institute in Velachery | Corporate Training Institute in Tambaram
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.
Java training in Chennai | Java training institute in Chennai | Java course in Chennai
Java training in Bangalore | Java training institute in Bangalore | Java course in Bangalore
Java online training | Java Certification Online course-Gangboard
Java training in Pune
Hello! This is my first visit to your blog! We are a team of volunteers and starting a new initiative in a community in the same niche. Your blog provided us useful information to work on. You have done an outstanding job.
AWS Training in Bangalore | Amazon Web Services Training in Bangalore
AWS Interview Questions And Answers
Learn Amazon Web Services Tutorial |AWS Tutorials For Beginners
Amazon Web Services Training in OMR , Chennai | Best AWS Training in OMR,Chennai
AWS Training in Chennai |Best Amazon Web Services Training in Chennai
Thanks for providing the information . The articles in your blog helped me a lot for improving the knowledge on the subject. Also check my small collection on this at selenium Online Training blog
good work done and keep update more.i like your information's and
that is very much useful for readers.
Java training courses near me
Java Training in T nagar
Java Training in Thirumangalam
Java J2ee Training in Bangalore
Inspiring writings and I greatly admired what you have to say , I hope you continue to provide new ideas for us all and greetings success always for you..Keep update more information..
Data Science Training in Chennai | Best Data science Training in Chennai
Data Science training in anna nagar | Data science training in Chennai
Data Science training in chennai | Best Data Science training in chennai
Data science training in Bangalore | Data Science training institute in Bangalore
Data Science training in marathahalli | Data Science training in Bangalore
Data Science interview questions and answers
Inspiring writings and I greatly admired what you have to say , I hope you continue to provide new ideas for us all and greetings success always for you..Keep update more information..
angularjs Training in bangalore
angularjs Training in bangalore
angularjs online Training
angularjs Training in marathahalli
angularjs interview questions and answers
I enjoyed over read your blog post. Your blog have nice information, I got good ideas from this amazing blog. I am always searching like this type blog post. I hope I will see again.. Machine learning training in chennai | block chain training in chennai
Does your blog have a contact page? I’m having problems locating it but, I’d like to shoot you an email. I’ve got some recommendations for your blog you might be interested in hearing.
AWS Training in Pune | Best Amazon Web Services Training in Pune
Amazon Web Services Training in OMR , Chennai | Best AWS Training in OMR,Chennai
AWS Training in Chennai |Best Amazon Web Services Training in Chennai
Amazon Web Services Training in Pune | Best AWS Training in Pune
Great blog thanks for explaining about the selenium.
I am currently doing my selenium training in velachery.I had no idea about the future of Selenium so can anyone guide me with the scope of Selenium?
This concept is a good way to enhance the knowledge.thanks for sharing. please keep it up selenium Online Training Hyderabad
Awesome Post. The content show cases your in-depth knowledge. Thanks for Sharing.
Primavera Training in Chennai
Primavera Course in Chennai
Primavera Software Training in Chennai
Best Primavera Training in Chennai
Primavera p6 Training in Chennai
Primavera Coaching in Chennai
Primavera Course
Nice too understand
selenium training centers in Bangalore
best software testing training institutes in Bangalore with placements
automation testing courses in Bangalore
selenium testing course in Bangalore
software testing institutes in Bangalore
selenium training in Bangalore
best selenium training in Bangalore
selenium course in Bangalore
Nice blog..
selenium training centers in BTM
best software testing training institutes in BTM with placements
automation testing courses in BTM
selenium testing course in BTM
software testing institutes in btm
selenium training in btm
best selenium training in btm
selenium course in btm
Nice article .i love to read this article
selenium training centers in Marathahalli
best software testing training institutes in Marathahalli with placements
automation testing courses in Marathahalli
selenium testing course in Marathahalli
software testing institutes in Marathahalli
selenium training in Marathahalli
best selenium training in Marathahalli
selenium course in Marathahalli
Learn Excel and Advanced excel Training Course in Delhi, Noida and Gurgaon with Better Placement assistance. Call Now and Get Free Demo Classes here- -+91-9311002620, +91-11-40504400. More Information here-https://www.htsindia.com/Courses/Business-Analytics/adv-excel-training-course
Advanced Excel Training Course in Delhi, Noida and Gurgaon
Advanced Excel Training institute in Delhi, Noida and Gurgaon
I accept there are numerous more pleasurable open doors ahead for people that took a gander at your site.
best nebosh course in chennai
Nice way of expressing your ideas with us.
thanks for sharing with us and please add more information's.
python training in bangalore
best python training institute in bangalore
Python Training in T nagar
Python Training in Saidapet
python automation training in bangalore
This comment has been removed by the author.
Thanks for sharing this informative post! Keep us updated with more such information.
WordPress Training in Chennai | WordPress Training Institute in Chennai | WordPress Training | Advanced Excel Training in Chennai | Microsoft Dynamics CRM Training in Chennai | Oracle Training in Chennai | Oracle Training institute in chennai
Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging……
water level controller service in chennai |
Automatic Controller for RO pump in Chennai |