Can WebDriver test Mobile applications?

1 Answer

Answer :

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

Related questions

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

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

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 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 : 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(By.id( id of the sub link )); subLinkOption.click();

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 : 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 : 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 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 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 : 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 : Explain How can I read test data from excels?

Last Answer : Test data can efficiently be read from excel using JXL or POI API. See the detailed tutorial here.

Description : Why should Selenium be selected as a test tool?

Last Answer : Selenium is free and open source Have a large user base and helping communities Have cross Browser compatibility (Firefox, Chrome, Internet Explorer, Safari, etc.) Have great platform ... Ruby, Python, Pearl, etc.) Has fresh and regular repository developments Supports distributed testing

Description : Why should Selenium be selected as a test tool?

Last Answer : Selenium 1. is a free and open source 2. have a large user base and helping communities 3. have cross Browser compatibility (Firefox, Chrome, Internet Explorer, Safari, etc.) 4. have ... Ruby, Python, Pearl etc.) 6. has fresh and regular repository developments 7. supports distributed testing

Description : What are three fields in selenium IDE?

Last Answer : Command, Target, Value

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 : 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 : when to use AutoIT?

Last Answer : Selenium is designed to automate web-based applications on different browsers. But to handle window GUI and non-HTML popups in the application you need AutoIT.

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 : Define what are the types of Listeners in TestNG?

Last Answer : The types of Listeners in TestNG are, 1. IAnnotationTransformer 2. IAnnotationTransformer2 3. IConfigurable 4. IConfigurationListener 5. IExecutionListener 6. IHookable 7. IInvokedMethodListener 8. IInvokedMethodListener2 9. IMethodInterceptor 10. IReporter 11. ISuiteListener 12. ITestListener

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

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

Description : Define in what ways you can customize TestNG report?

Last Answer : You can customize TestNG report in two ways, 1. Using ITestListener Interface 2. Using IReporter Interface

Description : Define what is IntelliJ?

Last Answer : IntelliJ is an IDE that helps you to write better and faster code for Selenium. IntelliJ can be used in the option to Java bean and Eclipse.

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 : 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 : 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 : To enter values into text boxes Define what is the command that can be used?

Last Answer : To enter values into text boxes we can use command sendkeys()

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 : 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 does it mean to be “developer focused”?

Last Answer : We believe that within a software application's development team, the people who are best placed to build the tools that everyone else can use are the developers. Although it should be easy ... button in your favorite IDE and aims to work consistently no matter which browser implementation you use.

Description : Define what is the selenium’s recording language?

Last Answer : Selenium’s recording language is “HTML”.

Description : Explain How you can log in into any site if it’s explained Howling any authentication popup for password and username?

Last Answer : Pass the username and password with URL Syntax- http://username:password@url ex- http://creyate:[email protected]

Description : Define what are the features of TestNG and list some of the functionality in TestNG which makes it more effective?

Last Answer : TestNG is a testing framework based on JUnit and NUnit to simplify a broad range of testing needs, from unit testing to integration testing. And the functionality which makes it ... annotations Support for data-driven testing Flexible test configuration Ability to re-execute failed test cases

Description : Explain Define what is Data-driven framework and Keyword driven?

Last Answer : Data-driven framework: In this framework, the test data is separated and kept outside the Test Scripts, while test case logic resides in Test Scripts. Test data is read from the external files ( ... application under test is documented in a table as well as step by step instructions for each test.

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 : Why is my Javascript execution always returning null?

Last Answer : ou need to return from your javascript snippet to return a value, so: js.executeScript(“document.title”); will return null, but: js.executeScript(“return document.title”); will return the title of the document.

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 : Explain Define what is the difference between find elements () and find element () ?

Last Answer : find element (): It finds the first element within the current page using the given locating mechanism . It returns a single WebElement findElements () : Using the given locating mechanism find ... )- To execute a method before this annotation is used, the test method must start with test@Before

Description : My XPath finds elements in one browser, but not in others. Why is this?

Last Answer : The short answer is that each supported browser handles XPath slightly differently, and you’re probably running into one of these differences. The long answer is on the XpathInWebDriver page..

Description : Explain How do I execute Javascript directly?

Last Answer : We believe that most of the time there is a requirement to execute Javascript there is a failing in the tool being used: it hasn't emitted the correct events has not interacted with a page ... bindings will follow a similar approach. Take a look at the using javascript page for more information.

Description : Which attribute you should consider throughout the script in a frame for “if no frame Id as well as no frame name”?

Last Answer : You can use…..driver.findElements(By.xpath(“//iframe”))…. This will return the list of frames. You will need to switch to each and every frame and search for locator which we want. Then break the loop

Description : Define what tests can selenium do?

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

Description : Can we use Selenium grid for performance testing?

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