Selenium is an open source framework for testing web applications.

learn more… | top users | synonyms

0
votes
2answers
360 views

Selenium Webdriver - finding element on IE 11

I'm trying to assert a 'name' on my page, to assure the right name is displayed: public static OpenQA.Selenium.By Name = (By.CssSelector("p")); Assert.AreEqual("Name", ...
1
vote
1answer
119 views

Parameters with DataProviders

Is there any way to use Parameters with DataProvider together in Selenium ? @Parameters({"safaf"}) @DataProvider(name="sss") public void hhhhh (String safaf){ }
1
vote
2answers
73 views

Learning Java & selenium [closed]

I have recently started learning selenium and Java. I need your assistance as to how should i go about it. Thanks
0
votes
2answers
414 views

Cannot access elements in iframe

I cannot access elements inside of an iframe, I have tried the call: IWebElement iframeSwitch = driver.FindElement(By.XPath("//iframe[contains(@id, 'contentIFrame1')and contains (@title, 'Content ...
1
vote
1answer
479 views

Testing the Downloading/Uploading of files with Selenium IDE/WebDriver/Other?

In a series of applications my team is building we would like to test our import and export functionality which requires the respective upload and download to be automated. The functionality is ...
0
votes
2answers
98 views

jenkins build execution is taking too much time for a selenium job

I was learning jenkins integration with selenium scripts.So I have created a job and executing the build, in the console output I am able to see all the statements which are I am printing and the test ...
1
vote
3answers
254 views

isselected() method returning false always why?

First, I want to check whether checkbox is selected or not and then have to perform select action. But here isselected method always giving false output, because the script is selecting the checkbox ...
1
vote
0answers
290 views

Unable to handle Google Authentication pop up window in robot framework test case

I am having a problem on handling google authentication pop up window in robot framework. The process I want to automate is - When a button( Sign in with google) is clicked , google authentication ...
2
votes
2answers
141 views

Reporting capabilities for automated tests using Selenium

How can we add reporting capabilities to Selenium based UI automated testing, such as reports on failed and passed tests, recurring failed tests, etc.?
1
vote
1answer
283 views

Creating a log file for each and every test case with executed test case name

I am working on selenium automation for one of the project, I have a number of test cases I want to create a separate log file for each and every test case Example : Suppose I have two test cases ...
1
vote
2answers
233 views

How to add HTML/text content of a <div> into an array/list?

I am new to selenium and working with xpath. I am using selenium and java to write automated tests for chat messaging web application. I am looking for a way to take a webElement which contains ...
1
vote
1answer
90 views

The element is not clicked if the element is not visible on the screen even if it is displayed

If the element is present in the html but, for the element to come into view it needs to be scrolled up. When clicking on this element Selenium webdriver does not throws any error but it does not ...
1
vote
1answer
130 views

Confused over different Automation terminology (Web Testing)

So I'm a little bit confused at getting started at writing my own Automated test scripts. For reference the majority of my company's apps are Ruby on Rails technology, I looked into using Cucumber, ...
1
vote
1answer
40 views

How can I move all my seleniumIDE locators to javascript variables (like page objects)?

My locators are all hard-coded into the tests. How can I extract these into variables?
1
vote
2answers
140 views

ElementNotVisibleException in Selenium

I need to click on a link which displays a popup. But, I'm receiving the following exception: org.openqa.selenium.ElementNotVisibleException: Element is not currently visible and so may not be ...
1
vote
1answer
84 views

Selenium - Automated test with Random-ish data? Doable?

So I'm trying to make an automated test for a type of survey. Just imagine a bunch of questions each page with some options like "agree/strongly agree/etc..." Now the issue is, while the questions ...
4
votes
2answers
217 views

How do I split my PageObject Model classes?

My page object model class is getting rather long. Should I create a different class with the same name as the page object model with a 2 added at the end. Or does this go against the page object ...
4
votes
3answers
408 views

Page Object Model or External property file for Selenium Object Repository

I am a beginner in Selenium WebDriver (Java with TestNg). I'm trying to create a framework of my own. My question here is what would be the better option to store my objects (basically all the ...
4
votes
1answer
68 views

How to pull content of a div into a String

I am looking for a way to pull the html or text content of a so I could work with it for a method which validates links amongst text of messages displays on a webpage. I am using selenium and java. ...
1
vote
1answer
48 views

Function Key issue with selenium [closed]

How to press function keys like F12 using selenium (java). Please help me in this. Thanks in Advance
3
votes
1answer
238 views

Sikuli and Appium

Is it advisable to use Sikuli along with Appium ? I tried finding an image after launching app on device using Appium, but sikuli returned an error saying "cannot find img/x.png on the screen".
2
votes
4answers
148 views

Test strategy for sorting

What will be a good test strategy to test sorting? I have a scenario where when clicking on a sort, i.e. sort the make/model from Z to A, then the listing should be sorted alphabetically from Z to ...
0
votes
0answers
107 views

Selenium Virtual Frame Buffer on Windows

I have a requirement to run a process that itself requires functionality of the Firefox browser. Currently, I run this process on a laptop, so having Firefox running is not a problem. However, we ...
0
votes
2answers
220 views

How can I avoid conflicts running Selenium tests in parallel, when they must exercise an underlying REST API?

I have a web application which needs to be tested in multiple browsers in multiple environments (i.e. Chrome, Firefox, and Internet Explorer in both Windows and Linux* (*with the obvious exception of ...
1
vote
1answer
111 views

Authentication pop-up issue with Selenium [duplicate]

How to enter credentials using Selenium (Java)? I am not able to enter credentials in the Pop-up window, which is shown above. Please help me in this. Thanks in Advance
1
vote
2answers
94 views

What language is required when learning Selendroid?

I want to learn Selendroid. I do not know what language I need to know before starting with selendroid. I know selenium using Java. For selendroid, do I have to learn android?
1
vote
3answers
601 views

Can I copy data from a CSV file and use it in a website using only Selenium IDE

Right now I'm running selenium test script in which I have get data from a CSV file and paste in a site.So can I copy data from a CSV file and paste in a test script in Selenium IDE. It would be of ...
4
votes
1answer
637 views

Using xpath to confirm <h4> text with a <strong tag> in the middle

I'm using the Java Selenium WebDriver implementation. I'm searching for a string literal in an tag which has a tag in the middle, i.e. <h4>Some regular text <strong>followed by strong ...
2
votes
2answers
158 views

Verifying a Caraousel should rotate after clicking - Selenium Webdriver

Is there an automation method, via Selenium with Java, that can verify if a carousel rotates after clicking it? I highlighted the Right arrow as Red box which should rotate after clicking it.
1
vote
1answer
202 views

Handling multiple Iframes with same name

I am trying to navigate on a web browser that has multiple iframes that are all tagged with the id of "InlineDialog_Iframe". When I try to switch to the window I get a stale reference exception, which ...
1
vote
1answer
126 views

Get runtime property for the same element

When we enter text in google search textbox it auto-suggest the options, the objects changes. Now I want to click the Search button which was earlier Google Search. I have created the Google Search ...
0
votes
1answer
27 views

How should mobile (native) automation testing on a production app be introduced? [closed]

I would need to start mobile (iOS & Android) automation testing from zero. Currently there is no automation testing...only some high level (UAT) manual testing. Which would be the most efficient ...
2
votes
3answers
138 views

How to add @parameter annotation for TestNG in Eclipse

I'm trying to do parameterization for TestNG in Eclipse but the annotation @parameter is not being shown. How to add @parameter annotation for TestNG in eclipse?
2
votes
2answers
276 views

switching between tabs in a browser

I am trying to click on a download link which will open in a new tab in pdf format.I want to do some actions on newly open tab. I am able to switch to newly open tab but when I am trying to do any ...
1
vote
1answer
451 views

Handle Firefox native dialog windows with Selenium IDE

I'm new using Selenium IDE (and as a QA). I'm testing my Web application on Firefox and I have an export button that downloads an Excel file. My problem is how to handle the window dialog native of ...
1
vote
1answer
94 views

Expecting a popup upon closing the browser

I am expecting a pop-up upon closing the browser. For example, when you are shopping and you have items in cart and in the middle of the checkout process, you wanted to close the tab/browser, at that ...
0
votes
2answers
942 views

how to launch Chrome using remote webdriver

I have set up 2 PCs as selenium hub & node.Now, I am trying to browse a URL in that node, from a console app that runs in the hub. But there is an error when initialising the browser.Both PCs run ...
0
votes
1answer
296 views

Selenium hangs for modals in firefox browser for very long time

After opening the modal window or modal overlay , performing any click operation within the modal takes very long time. It doesn't throw any exception neither does the execution stops. ...
2
votes
4answers
116 views

What set of toolkits and frameworks should I learn to be considered as a good tester

I am very new at testing, so my apologies in advance if my question is very primary. I started my job as a Tester 4 months ago. I am using Java, Selenium and Sikuli to write tests for applications. I ...
0
votes
1answer
41 views

Dataproviders and Asserts

When using DataProviders, on TestNG, my test method has asserts that will fail since the data passed in navigates to a different url. Is there a way to work around this, i.e. a way for the data to ...
1
vote
2answers
121 views

For successful build how many test cycles are required

In one interview they asked me about the agile testing. "How often testing cycle happens in your project after successful build?" I'm new to agile methodology in testing. Please let me know how to ...
1
vote
3answers
218 views

Running application doesn't execute any code but opens a new window

I am trying a build an automated testing framework, using Selenium WebDriver to simply login a website. However, when I run the following code, the only thing that happens is a new internet explorer ...
1
vote
0answers
63 views

Integration of selenium and HPQC

What are the options available for integrating Selenium web driver .net framework with HP QC. I know API is available from QC but I am looking for existing frameworks or tools that I can use for same. ...
1
vote
1answer
44 views

Want to get value from the below code snippet through Web Driver

<script> jQuery(function() {jQuery("#chart").kendoChart({"chartArea":{"background":"#f7f7f7"} "title":{"position":"top"} "legend":{"visible":false} "series":[{"name":"Consumption" ...
1
vote
2answers
379 views

Type mismatch: cannot convert from WebElement to List<WebElement>

Whenever I am trying to use a list element, this error is showing Type mismatch: cannot convert from WebElement to List<WebElement> in appium. Please help! List ...
0
votes
2answers
167 views

What exactly should be in a page object?

I'm having a bit of a hard time designing my page object. What sort of methods should be in there? Should I put wrapper methods for driver functionalities (e.g driver.findElement(...)) or shall I ...
0
votes
1answer
80 views

Verify if popup appears using Selenium

I want to verify if a pop-up appears, so I went to inspect element of the link and I tried to match the ownerID from the element to that of the url that pops-up but the issue that I have is that when ...
6
votes
2answers
165 views

How to avoid flakey E2E selenium tests?

I'm under the impression that most of the E2E selenium tests are flakey. A major reason seems to be timing issues. Another one is that they often test against servers that are not controlled by the ...
1
vote
2answers
59 views

Existence of an element

I have seen a couple of ways to test if an element exists. One way: private boolean existsElement(String id) { try { driver.findElement(By.id(id)); } catch (NoSuchElementException e) ...
0
votes
2answers
116 views

Retrieving xpath from stored webelement variable

I am using page object model. Here is xpath that I have written for Heading of the page and stored it in the heading webelement variable. @FindBy( xpath = "//div[@class='page-title ...