Recent questions tagged selenium

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 : 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 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 : 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 : 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 : 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 : 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 : 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 : 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 : 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 : 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 : Can Selenium test an application on an Android browser?

Last Answer : Selenium can handle Android browser.

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 : 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 : Define what is Object Repository?

Last Answer : An object repository is an essential entity in any UI automation which allows a tester to store all object that will be used in the scripts in one or more centralized locations rather than scattered all over the test scripts.

Description : Define what is the difference between Implicit wait and Explicit wait?

Last Answer : Implicit Wait: Sets a timeout for all successive Web Element searches. For the specified amount of time, it will try looking for element again and again before throwing a NoSuchElementException. It waits for elements to ... How up. Explicit Wait: It is a one-timer, used for a particular search./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 : 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 : Define what is heightened privileges browsers?

Last Answer : The purpose of heightened privileges is similar to Proxy Injection, allows websites to do something that is not commonly permitted. The key difference is that the browsers are launched in a special ... and also read/write its content without passing the whole AUT through the Selenium RC server

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