For Database Testing in Selenium Webdriver Define what API is required?

1 Answer

Answer :

For Database Testing in Selenium Webdriver, you need JDBC (Java Database Connectivity) API. It allows you to execute SQL statements.

Related questions

Description : Define what is Listeners in Selenium WebDriver?

Last Answer : In Selenium WebDriver, Listeners “listen” to the event defined in the selenium script and behave accordingly. It allows customizing TestNG reports or logs. There are two main listeners i.e. WebDriver Listeners and TestNG Listeners.

Description : Define what are the challenges in Handling Ajax Call in Selenium Webdriver?

Last Answer : The challenges faced in Handling Ajax Call in Selenium Webdriver are Using the pause command for handling Ajax call is not completely reliable. Long pause time makes the test unacceptably ... as such AJAX application often use different encoding or serialization technique to submit POST data.

Description : Define what are the testing types that can be supported by Selenium?

Last Answer : Selenium supports the following types of testing: 1. Functional Testing 2. Regression Testing

Description : To generate pdf reports Define what Java API is required?

Last Answer : To generate pdf reports, you need Java API IText.

Description : Define what is WebDriver?

Last Answer : WebDriver is a tool for writing automated tests of websites. It aims to mimic the behavior of a real user, and as such interacts with the HTML of the application

Description : Define what are the different types of Drivers available in WebDriver?

Last Answer : The different drivers available in WebDriver are: FirefoxDriver InternetExplorerDriver ChromeDriver SafariDriver OperaDriver AndroidDriver IPhoneDriver HtmlUnitDriver

Description : Define what are the different types of waits available in WebDriver?

Last Answer : There are two types of waits available in WebDriver: 1.Implicit Wait 2.Explicit Wait Implicit Wait: Implicit waits are used to provide a default waiting time (say 30 seconds) between each ... maximum time has elapsed. Unlike Implicit waits, explicit waits are applied for a particular instance only.

Description : Can we use Selenium grid for performance testing?

Last Answer : Yes. But not as effective as a dedicated performance testing tool like LoadRunner.

Description : Which browsers does WebDriver support?

Last Answer : The existing drivers are the ChromeDriver, InternetExplorerDriver, FirefoxDriver, OperaDriver and HtmlUnitDriver. For more information about each of these, including their relative strengths and ... is also support for mobile testing via the AndroidDriver, OperaMobileDriver, and IPhoneDriver

Description : Explain How to mouse hover on a web element using WebDriver?

Last Answer : WebDriver offers a wide range of interaction utilities that the user can exploit to automate mouse and keyboard events. Action Interface is one such utility which simulates the single user interactions. Thus ... subLinkOption=driver.findElement( id of the sub link ));;

Description : Explain How to handle frame in WebDriver?

Last Answer : An inline frame acronym as iframe is used to insert another document within the current HTML document or simply a web page into a web page by enabling nesting. Select iframe by id driver.switchTo().frame( ID ... switchTo().frame(0); frame(Name of Frame) driver.switchTo().frame( name of the frame );

Description : Can WebDriver test Mobile applications?

Last Answer : WebDriver cannot test Mobile applications. WebDriver is a web-based testing tool, therefore applications on the mobile browsers can be tested.

Description : Explain How do I launch the browser using WebDriver?

Last Answer : The following syntax can be used to launch Browser: 1. WebDriver driver = new FirefoxDriver(); 2. WebDriver driver = new ChromeDriver(); 3. WebDriver driver = new InternetExplorerDriver();

Description : Define what is Selenium and Define what is composed of?

Last Answer : Selenium is a suite of tools for automated web testing. It is composed of Selenium IDE (Integrated Development Environment): It is a tool for recording and playing back. It is a firefox plugin ... can be run parallel which helps in cutting down the time required for running in-browser test suites

Description : Define what are the advantages of Using Git Hub For Selenium?

Last Answer : The advantages of Using Git Hub for Selenium are Multiple people when they work on the same project they can update project details and inform other team members simultaneously. Jenkins can help you ... the project from the remote repository regularly. This helps you to keep track of failed builds.

Description : Define what is the desired capability? Explain How is it useful in terms of Selenium?

Last Answer : The desired capability is a series of key/value pairs that stores the browser properties like browser name, browser version, the path of the browser driver in the system, etc. to determine the ... you want to run the test cases on a different browser with different operating systems and versions.

Description : In Selenium Define what are Breakpoints and Startpoints?

Last Answer : Breakpoints: When you implement a breakpoint in your code, the execution will stop right there. This helps you to verify that your code is working as expected. StartpointsStartpoint indicates the point from where ... when you want to run the test script from the middle of the code or a breakpoint.

Description : Define what are the steps to run automation using selenium?

Last Answer : The very basic steps are: Record the test steps using selenium-IDE. Modify the script according to the testing needs. Add validation points, Java Scripts, Time-out, etc.

Description : Define what are the disadvantages of Selenium?

Last Answer : Disadvantages of Selenium: Limitation in terms of browser support (It runs only in Mozilla). Scripts written using Selenium IDE can be used for other browsers only if it is used with Selenium ... manual scripts like conditions and Loops for Data Driven Testing There is no option to verify images

Description : Define what is Selenium IDE?

Last Answer : Selenium IDE is an integrated development environment for Selenium tests. It is implemented as a Firefox extension and has a recording feature, which will keep account of user actions as they are ... play back. Selenium-IDE also offers full editing of test cases for more precision and control.

Description : Define what tests can selenium do?

Last Answer : Selenium could do functional, regression, and a load of web-based applications.p>

Description : Define what are the four parameters you have to pass in Selenium?

Last Answer : Four parameters that you have to pass in Selenium are Host Port Number Browser URL You can use “submit” method on the element to submit a form- element. submit (); Alternatively, you can use click method on the element which does form submission

Description : Define what is Selenium 2.0?

Last Answer : Web testing tools Selenium RC and WebDriver are consolidated in single tool in Selenium 2.0

Description : Define what is Object Repository? Explain How can we create Object Repository in Selenium?

Last Answer : Object Repository is a term used to refer to the collection of web elements belonging to Application Under Test (AUT) along with their locator values. Thus, whenever the element is required within ... objects can be stored in an excel sheet which can be populated inside the script whenever required.

Description : Define what are the advantages of Selenium?

Last Answer : 1. It supports C#, PHP, Java, Perl, Python 2. It supports different OS like Windows, Linux and Mac OS 3. It has got powerful methods to locate elements (XPath, DOM, CSS) 4. It has highly developer community supported by Google

Description : Explain Define what is assertion in Selenium and Define what are the types of assertion?

Last Answer : An assertion is used as a verification point. It verifies that the state of the application conforms to Define what is expected. The types of assertion are “assert”, “verify” and “wait for”.

Description : Define what are the capabilities of Selenium IDE?

Last Answer : Selenium IDE (Integrated Development Environment) works similar to commercial tools like QTP, Silk Test and Test Partner, etc. The below points describe well about Selenium IDE. Selenium IDE is a ... allowing the use of add-ons or user extensions that expand the functionality of Selenium IDE

Description : Define what are the steps to run automation using selenium?

Last Answer : The very basic steps are: 1. Record the test steps using selenium-IDE. 2. Modify the script according to the testing needs. Add validation points, Java Scripts, Time-out, etc. 3. Run the test. 4. View the result after the test runs completely analyze.

Description : Define what are the different types of locators in Selenium?

Last Answer : A locator can be termed as an address that identifies a web element uniquely within the webpage. Thus, to identify web elements accurately and precisely we have different types of locators in Selenium: ID ClassName Name TagName LinkText PartialLinkText Xpath CSS Selector DOM

Description : Define what is Selenium? Define what are the different Selenium components?

Last Answer : Selenium is one of the most popular automated testing suites. Selenium is designed in a way to support and encourage automation testing of functional aspects of web-based applications and ... Selenium Grid is used to distribute your test execution on multiple platforms and environments concurrently.

Description : Define what are the limitations of Selenium?

Last Answer : Following are the limitations of Selenium: Selenium supports testing of only web-based applications Mobile applications cannot be tested using Selenium Captcha and Bar code readers cannot be ... can find numerous helping communities. User is expected to possess prior programming language knowledge.

Description : What are three fields in selenium IDE?

Last Answer : Command, Target, Value

Description : Why do you need Session Handling while working with Selenium?

Last Answer : While working with Selenium, you need Session Handling. This is because, during test execution, the Selenium WebDriver has to interact with the browser all the time to execute given commands. At the time of ... and in the same type of browser. So to avoid such a situation you need Session Handling.

Description : why to choose Python over Java in Selenium?

Last Answer : Few points that favor Python over Java to use with Selenium is, Java programs tend to run slower compared to Python programs Java uses traditional braces to start and ends blocks, while Python ... static typing, while Python is dynamically typed. Python is simpler and more compact compared to Java.

Description : Explain How do you identify an object using selenium?

Last Answer : To identify an object using Selenium you can use isElementPresent(String locator) isElementPresent takes a locator as the argument and if found returns a Boolean

Description : Using Selenium Explain How can you handle network latency?

Last Answer : To handle network latency you can use driver.manage.pageloadingtime for network latency

Description : Explain How Selenium grid hub keeps in touch with RC slave machine?

Last Answer : At predefined time selenium grid hub keeps polling all RC slaves to make sure it is available for testing. The deciding parameter is called “remoteControlPollingIntervalSeconds” and is defined in “grid_configuration.yml” file

Description : Other than the default port 4444 Explain How you can run Selenium Server?

Last Answer : You can run Selenium server on java-jar selenium-server.jar-port other than its default port

Description : Explain How you can capture server-side log Selenium Server?

Last Answer : To capture server-side log in Selenium Server, you can use command java –jar .jar –log selenium.log

Description : Why use TestNG with Selenium RC?

Last Answer : If you want full automation against the different server and client platforms, You need a way to invoke the tests from a command line process, reports that tell you Define what happened and flexibility in Explain How you create your test suites. TestNG gives that flexibility.

Description : Can Selenium test an application on iPhone’s Mobile Safari browser?

Last Answer : Selenium can handle the Mobile Safari browser. It is experimental Selenium iPhone Driver for running tests on Mobile with Safari on the iPhone and iPad and iPod Touch.

Description : Can Selenium test an application on an Android browser?

Last Answer : Selenium can handle Android browser.

Description : Explain How to assert text of webpage using selenium 2.0?

Last Answer : WebElement el = driver.findElement(“ElementID”)) //get test from element and stored in text variable String text = el.getText(); //assert text from expected Assert.assertEquals(“Element Text”, text);

Description : Explain How you can use “submit” a form using Selenium?

Last Answer : Firefox, IE, Opera, Safari on an operating system like Windows, Mac, Linux, etc. Explain However QTP is limited to Internet Explorer on Windows. Selenium supports many programming languages like Ruby, Perl, Python whereas QTP supports only VB script

Description : Why testers should opt for Selenium and not QTP?

Last Answer : 1. Selenium is more popular than QTP as 2. Selenium is an open source whereas QTP is a commercial tool 3. Selenium is used especially for testing web-based applications whileQTP can be used for the testing client-server application also 4. Selenium support

Description : List out the test types that are supported by Selenium?

Last Answer : For web based application testing selenium can be used The test types can be supported are a) Functional b) Regression For post-release validation with the continuous integration automation tool could be used a) Jenkins b) Hudson c) Quick Build d) CruiseControl

Description : List out the technical challenges with Selenium?

Last Answer : Technical challenges with Selenium are Selenium supports only web-based applications It does not support the Bitmap comparison For any reporting related capabilities have to depend on third-party ... As there is no object repository concept in Selenium, maintainability of objects becomes difficult

Description : Explain How Selenium Grid works?

Last Answer : Selenium Grid sent the tests to the hub. These tests are redirected to Selenium Webdriver, which launch the browser and run the test. With the entire test suite, it allows for running tests in parallel.

Description : Can Selenium handle windows based pop up?

Last Answer : Selenium is an automation testing tool which supports only web application testing. Therefore, windows pop up cannot be handled using Selenium.

Description : Explain How to type in a textbox using Selenium?

Last Answer : User can use sendKeys(“String to be entered”) to enter the string in the textbox. Syntax: WebElement username = drv.findElement(“Email”)); // entering username username.sendKeys(“sth”);