This Questions are helpful for your learning python and also crack your Interview. At Ducat, we give you advanced Python training under the guidance of largely
educated coaches. Join our online and offline classes moment.
Call Us:- 70-70-90-50-90
EmailId:- www.ducatindia.com
2. 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.
17. Ans:
Python is one of the easy-to-use
programming languages and is not very
big or complex. Python APIs allow us,
via Selenium, to connect to the
browser. In terms of the differences in
browser architecture, Selenium can
express normal Python commands to
different browsers.
20. Ans: Browser.quit()
This feature manages the entire browser
for all open windows and guarantees that
the processes are closed and terminated
properly without any memory leaks.
Browser.close()
The latest executing window will close
and you can still turn to other window
handles, even though the newly running
window is locked.
21. Ans:
It is the direction finder of the
expandable markup language where
the data is stored in XML format such
as Key value pair.
22. Ans:
Selenium is a tool for interacting with
multiple browsers on the internet.
And they monitor the script’s
operation.
24. What
Ans:
The supported drivers are:
Gecko driver
ChromeDriver
InternetExplorerDriver
SafariDriver
OperaDriver
AndroidDriver
IPhoneDriver
HtmlUnitDriver.
25. Q24) Explain what is assertion in Selenium and what are
the types of assertion?
Ans:
As a verification stage, statement is
used. It verifies that the state of the
request is in line with what is
planned. Assert prove and waitFor
are the types of assertion.
26. Q25) What is the difference between verify and assert
commands?
Ans:
As a verification stage, statement is used. It
verifies that the state of the request is in line
with what is planned. Assert prove and waitFor
are the types of assertion.
Ans: Verify:Q25) What is the difference
between verify and assert commands?
The Verify command tests if the object is on
the page, and the test continues to run if it is
not. In verification, even if every test fails, all
the commands are expected to run.
Assert:
Assert helps you to verify whether or not an
element exists on the page. If the proclaimed
aspect is not available, the evaluation would
end at the phase failed. In other words, at the
point where the search fails, the evaluation will
be terminated..