Selenium is an open source framework for testing web applications.

learn more… | top users | synonyms

3
votes
2answers
93 views

Problem with drop-down menu

I'm new to Selenium Webdriver and I have a problem with a dropdown menu. I compiled my code but sometimes it returns the error: org.openqa.selenium.NoSuchElementException: Unable to find element ...
2
votes
3answers
124 views

Selenium - sendKeys() not inserting value into textbox

I am not able to validate an international number text box in Selenium. I have tried earlier by name, class and other locators but it is not inserting the value into the textbox. Below is the text ...
17
votes
3answers
56k views

A way to match on text using CSS locators

So I use xpath locators and slowly converting to CSS. I haven't found a way to do an exact match based on text. For example converting //a[text()='Log Out']. I know you can do css=a:contains('Log ...
0
votes
0answers
9 views

Run testing on china servers

Currently the application of a client is hosted on servers in China, so when I test manually or run the manual tests locally, the tests are very slow. Currently I also use continuous integration to ...
1
vote
3answers
71 views

Using boolean to select gender on a form

I am creating a test suite using appium/selenium java and it was suggested that I use a boolean to select the gender on a registration form. The page objects on the gender page are male, female, and ...
1
vote
1answer
986 views

Jenkins fails to start Chrome

I am working on Jenkins to run my scripts but I am facing the following issue: Running TestSuite Starting ChromeDriver 2.20.353124 (035346203162d32c80f1dce587c8154a1efa0c3b) on port 7652 Only ...
0
votes
0answers
60 views

Facing issue as Jenkins test case execution is not getting completed, waited long is not working

I was creating a job in Jenkins to execute my test cases through maven. when I am executing the build in jenkins test cases were executing but it is not completing its execution (even I waited 1hr ...
-2
votes
1answer
42 views

Exception in thread “main” org.openqa.selenium.ElementNotVisibleException: Element is not currently visible and so may not be interacted with

I have used find the element by Xpath in my code, I get the error as ElementNotVisible. <div class="loginBtn"> <input style="width: 59px; height: 20px" id="SubmitCreds" onclick="clkLgn()"...
0
votes
1answer
52 views

Switch case and dropdown in selenium

I am writing code to get state value from the drop-down and depending upon the state calculating the tax rate. I am using switch case statement to define the tax rate for each state. I want to use ...
1
vote
2answers
39 views

BrowserMobProxy verifying request

I am using Selenium with Java. I am trying to verify that a specific third party request came in so in order to capture the network traffic I used a proxy named BrowserMobProxy. I wrote the content ...
0
votes
2answers
115 views

Random Selenium WebDriver Tests inconsistently Fail and Pass on IE browser

Does anyone have any suggestions on how I can improve this situation? I have one suite of tests that I use for all three Firefox, Chrome, and IE browsers. The results I get for the browsers differs - ...
0
votes
1answer
427 views

Selenium 2.40 driver select tag issue

Following code works for selecting the last item from dropdown using Selenium 2.28 driver on Firefox and IE. Not working with Selenium Web Driver 2.40. I can see the dropdown opening but it is not ...
0
votes
3answers
67 views

How to select a checkbox from multiple checkboxes one by one

I want to know how to select single checkbox from multiple checkboxes one by one Sceanrio:- On a web Page, there are multiple entries having checkboxes in front of each entry. For each entry there ...
0
votes
2answers
5k views

How to Automate Expand tree in Testlink since “XPath” is changing dynamically depending on the testcase

I'm trying to expand a tree of nodes with folder structure using XPath locators selenium.click("//*[@id='ext-gen15']/li/div/img[1]"); but as the folder structure is not fixed and changes, so XPath ...
0
votes
1answer
26 views

How do I call a web api with selenium c#

How do I call a web api with selenium c#? Using Rest, vs 2015. Looking for sample code if any to test api's end to end. Thanks
-1
votes
0answers
25 views

Selenium Environment [on hold]

I recently had an interview and was asked about whether I have used Selenium only in web applications or also in package applications. I could not find anything about package applications even after I ...
0
votes
2answers
28 views

I am unable to switch to popup window in c# selenium

I have to create a new record, for that a new popup window opens. so i am unable to switch to that window. I used this code to switch the popup window foreach (string handle in driver.WindowHandles) {...
1
vote
3answers
97 views

What are the challenges with automation when using Selenium? [on hold]

I recently had an interview question what problems did you have while testing in Selenium. Well, I have experience in Selenium, but maybe I was testing a simple application, but I dried up quickly. ...
0
votes
0answers
25 views

Exception in thread “main” java.lang.NoSuchMethodError: org.openqa.selenium.WebDriverException.addInfo(Ljava/lang/String;Ljava/lang/String;)V

Here is my script to book the bus. In the procedure of process i am not able to select the seat of the bus, as it is an CANVAS element. So i am using the "action.tap(element, x, y).perform();". I am ...
0
votes
1answer
34 views

Plugin of Maven - Automated test

I need to run automated test on Bamboo (Atlassian) but i don't know what plugin of maven use. The automated test are with Selenium and Java.
1
vote
2answers
41 views

How to write data into excel using selenium?

I am using keyword driven framework to create the script in selenium.Any one please provide me script how to write the data into excel sheet with proper column names. Suppose once the customer is ...
1
vote
2answers
65 views

unit testing vs automation selenium resume value [closed]

I started working in automation development with selenium and am told it is a hot field and can earn some high-end coding salaries. We recently hired a new manager who once hired immediately took us ...
0
votes
1answer
17 views

Getting IOException Error cannot create directory on Mac with Selenium WebDriver

While running selenium grid tests from my Windows Hub on my Mac Node, I cannot create a directory aka folder on the Mac Node. I think my code is correct. It worked for the Windows Node. I am ...
0
votes
4answers
32 views

Im unable to locate the element to enter the text in the txt box in c#

i tried using xpath, Id to find elements. even though im getting the error "unable to locate the element" please can anyone help? HTML Snippet <input type="text" value="" maxlength="256" id="...
1
vote
1answer
110 views

Automation Java - Android - How to get items from a ListView?

I'm trying to get the items from a ListView so I can compare them with of expected results. The thing is that I can't figure out how to get those Elements. I'm also the developer of the App, so I'm ...
4
votes
2answers
56 views

Tomcat Server when used amongst Selenium Grid setup

We are using a different style of Automation framework in our project (as per client request) wherein we have designed a JSP page and this page contains links and buttons through which each ...
-1
votes
0answers
21 views

How to select option after clicking settings button in selenium c#?

I am unable to select options under settings button. I clicked on settings button using findelement(by.id("O365_MainLink_Settings")).click();. This is what I did by doing inspect element. But for to ...
5
votes
2answers
12k views

Firefox browser launches blank when the tests via Selenium

I have created a simple test that launches browser and calls a URL. This works fine in IE but when I select Firefox (FF) browser it opens blank. See the code snippet below. The issue is similar to ...
4
votes
3answers
49 views

How to validate against texts overlapping each other using selenium?

I am writing automated test cases for a company. One interesting problem is that texts on a webpage overlap each other, is there anyway to validate against this?
1
vote
1answer
108 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
28 views

Maven Java versioning issue [closed]

I am trying to setup jenkins and run build using maven, but I am getting an error, because maven is executing build with java source 1.5. I have mentioned the source and target in pom.xml as 1.7 still ...
0
votes
1answer
35 views

Trying to select a dropdown item that is a random GUID

I'm relatively new to Webdriver, and I am wondering if it is possible to select items on a dropdown that use a guid. Normally, I would use new Select (driver.findElement(By.id("location")))....
2
votes
2answers
484 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 ...
0
votes
1answer
33 views

Constructor calling in page object model [on hold]

I had an interview recently in one of MNC company and they asked me how to call constructor in page object model. Can anyone help me on this please..??
0
votes
1answer
27 views

I did findelement using Xpath, the next step i need to is findelement.text(); to get the text. how i can do that

This is the xpath for the text I need to find----- /html/body/div/table/tbody/tr/td[2]/table/tbody/tr[4]/td/table/tbody/tr/td[2]/table/tbody/tr[5]/td/form/table/tbody/tr[2]/td/table/tbody/tr[3]/td[3]/...
10
votes
6answers
3k views

Is adding IDs to everything standard practice when using Selenium?

My team is using Selenium WebDriver and the QA team is having the developers add IDs to almost everything. Is that normal or is Selenium flexible enough that tests can be written with the markup that ...
0
votes
1answer
121 views

How to Code this SSL Certificate Dialog, with Selenium IEdriver “request for permission to use a key” IE 8 9 11

Can anyone help me with sample code please. I have to login with SSL client certificate to authenticate in IE, this UI only works in IE. I have this Autoit Script but the popup is not being read by ...
2
votes
4answers
278 views

How best to test file download links using Selenium

On a website I am testing we have various links that download PDF files to the users computer. Our selenium suite runs nightly on bamboo, if we were to download the various files overnight it ...
0
votes
2answers
219 views

Submit button not working in Selenium webdriver

When I launch ChromeDriver or IEDriver and click the submit button (manually and automatically), it does not send the inputs. It works outside of webdriver though, I can click the submit button and ...
0
votes
5answers
83 views

What are the Alternative tools for Selenium

I am looking for a tool that can help me automating the test cases on website, I am currently using selenium webdriver but It takes a lot of time to write down the test cases using webdriver, also ...
0
votes
0answers
491 views

Selendroid: Unable to launch selendroid & Observed “SessionNotCreatedException”

I have tried to start selenium using following code to relevant path on cmd prompt: java -jar selendroid-standalone-0.14.0-with-dependencies.jar -app selendroid-test-app-0.14.0.apk but i am ...
0
votes
5answers
511 views

Unable to enter the text in a text box

I am trying to enter the text in a textbox, but I am getting an error as follows org.openqa.selenium.InvalidElementStateException: Element must not be hidden, disabled or read-only Anybody can help ...
0
votes
1answer
32 views

Selenium webdriver wait not working during ajax call

Could someone plz help. I am automating a webpage which has an ajax call. I tried to implement webdriver to wait for ajax to complete using webdriver wait. It seems the the webpage automatically got ...
0
votes
2answers
29 views

Selenium: Page logo is replaced, need to verify if the new logo appears

I have a webpage, where there is an option to upload a new website logo. When the new logo is uploaded, it has the same element id that of the previous logo. I have written the automation script ...
-1
votes
1answer
68 views

How to organize code in automation framework?

I am trying to figure out most readable way to organize my code (with POM) So far I have split out the following: Pages (methods for the specific pages) 'GoTo' pages (I don't need it but ...
1
vote
1answer
49 views

WebDriverWait until ExpectedCondition ElementVisible

I am creating an automation test framework for Selenium test using Page Object Model and Pagefactory. The website I am testing can create new pages that a person can write content to which is then ...
0
votes
1answer
24 views

How to log out in facebook using python selenium?

I want to know how to log out in facebook using python selenium. here's my code: from selenium import webdriver from selenium.webdriver.common.keys import Keys import time #from selenium folder ...
5
votes
3answers
87 views

Not able to click element using Selenium Webdriver

I am having this screen where i try to hover it after hovering the screen becomes drop down So i am not able to click on the screen using selenium webdriver. <td align="left" style="vertical-...
-1
votes
3answers
5k views

How to handle multiple columns of Data from Excel using Apache POI for Selenium WebDriver

I am new to Selenium WebDriver and I am automating an end to end test. My doubt here is, all the data for the test is stored in an excel file which contains more than 15 columns of data. Each @Test ...
3
votes
3answers
2k views

Selenium IDE and Selenese scripts in Continuous Integration

Apologies if this is not the forum for such a generic question. As our organisation moves to an Agile project methodology, we need to be able to rapidly automate applications as they are built up ...