170 likes | 192 Views
Top 15 Most Important Interview Question and Answer of Python selenium.<br>It will be very helpful for you to get knowledge and help to get job in MNC. <br> If You want to learn Python selenium course then you can join our online as well as offline classes from industry expert trainers. For More info, call Us: 70-70-90-50-90
E N D
INTERVIEW QUESTIONS OF PYTHON SELENIUM 070709 05090 070709 05090 https://tutorials.ducatindia.com https://tutorials.ducatindia.com
#01 WHAT IS SELENIUM AND WHAT IS COMPOSED OF? Ans:- Selenium is a suite of automated web testing resources. SELENIUM IDE: It is a recording and replay method. It is a Plugin for Firefox WEBDRIVER AND RC: It offers APIs for a number of languages, such as Java, .NET, PHP, etc. The Webdriver and RC browsers work for most of them.
#02 WHY MY PIP IS NOT WORKING PYTHON SETUP IS NOT INSTALLED PROPERLY? WHEN MY Ans:- Executable path is not set correctly. https://tutorials.ducatindia.com
#03 HOW CAN WE OPEN DIFFERENT BROWSER USING PYTHON? Ans:- For Firefox browser driver=webdriver.Firefox(“Path of Firefox Driver”) for IE browser driver=webdriver.Ie(“Path of IE Driver”) For Chrome browser driver=Webdriver.Chrome(“Path of Chromedriver”) https://tutorials.ducatindia.com
#04 WHAT ARE THE DIFFERENT TYPES OF ANNOTATIONS WHICH ARE USED IN SELENIUM? Ans:- Following are the annotations are used in selenium: Test BeforeClass After Ignore Before AfterClass RunWith https://tutorials.ducatindia.com
#05 WHAT IS THE COMMANDS FOR DOWNLOADING SELENIUM? Ans:- pip install –U selenium sudo pip install python https://tutorials.ducatindia.com
#06 WHAT ARE THE DIFFERENT LOCATORS USED? Ans:- Class name Id Tag name Name Partial link text CSS Selector XPath link text
#07 WHAT IS A LOCATOR? Ans:- It is a web page element that the python script can communicate with via the selenium driver. https://tutorials.ducatindia.com
#08 WHAT IS A WEBDRIVER? Ans:- Selenium provides a tool for interacting with various browsers on the web. And they control the script’s operation. https://tutorials.ducatindia.com
#09 HOW TO FIND ELEMENT BY HYPERLINK? Ans:- Find_element_by_link_text(“te xt of that hyperlink”).click() https://tutorials.ducatindia.com
#10 WHAT IS PASS IN PYTHON. Ans:- Pass means that there is no operation to do. https://tutorials.ducatindia.com
#11 CAN WE USE SELENIUM WHEN THE WEBPAGE AND RESOURCE LOCATER ELEMENTS ARE CHANGING FREQUENTLY? Ans:- Never https://tutorials.ducatindia.com
#12 WHAT ARE THE DIFFERENT NAVIGATION OPRATIONS IN SELENIUM? Ans:- used to refresh driver.refresh() used to navigate back driver.back() used to move forward driver.forward() https://tutorials.ducatindia.com
#13 WHAT IS THE WEBDRIVER USED TO RUN SELENIUM SCRIPT ON CHROME BROWSER? Ans:- chrome driver https://tutorials.ducatindia.com
#14 WHAT IS THE USE OF AUTOMATION TESTING? Ans:- This will reduce manpower and thus reduce the amount of time we spend on manual inspection at all times. https://tutorials.ducatindia.com
#15 WHAT IS USED TO CREATE UNICODE STRINGS IN PYTHON LANGUAGE? Ans:- Add u before the string u ‘mystring’ https://tutorials.ducatindia.com
Thank you! 070709 05090 070709 05090 https://tutorials.ducatindia.com https://tutorials.ducatindia.com