Selenium is an open source framework for testing web applications.

learn more… | top users | synonyms

1
vote
3answers
37 views

Unable to locate element in Selenium Java

Hi i am trying to locate element in selenium: <button class="add-widget ui-button ui-widget ui-state-default ui-corner-all ui-button-icon-only" title="Add widget" role="button" aria-disabled="...
2
votes
1answer
39 views

How to Pause your script in selenium untill your Autoit script gets completed?

I want Selenium to wait untill and unless Autoit Script is completed. Right Now whats happening is When I run TestNG.xml file it runs all the @Test Priority wise and within 5 sec TestNg output ...
1
vote
1answer
3k views

How to handle child window in selenium webdriver?

Using Selenium Webdriver, I want switch between parent and child windows, but I'm not able to get the script to focus on child window. It is not working. Anybody having suggestions to find the ...
1
vote
0answers
5 views

How to Detect if Autoit script is failed or not in selenium (java)

I need to detect if current running autoit script is failed or not. I tried to wait for 1 min in the following code, if in this time 1st Autoit script doesn't complete then it will move on to 2nd ...
0
votes
4answers
70 views

Handling Popup using selenium - how to switch back on parent window from child?

So I have to upload a document, and the popup for file explorer loads and my code can find the document I need, but how do I then switch back to my original browser? Here is the code: driver....
3
votes
1answer
10 views

Selenium Test Design Struture - Test Granularity for a Large Project

Summary I have large Selenium Test project, and I'm struggling with how to manage my test structure in a way that I feel is easily maintainable, scalable, and that provides a good level of test ...
0
votes
1answer
69 views

Blank Browser launches on Selenium Grid Hub with Every Test Run on Node

Why does the hub keep launching a blank browser before it runs a test on the node? Every time a test starts to run, a blank browser is launched on the hub before it opens the same type of browser on ...
4
votes
1answer
137 views

Can I execute selenium test cases in a real browser with Jenkins Selenium and Maven

I am working on selenium project with Jenkins + Maven + Selenium + TestNG I am following few questions. Can I execute selenium test cases in Jenkins by launching browsers? Currently it gets ...
0
votes
1answer
14 views

Jenkins build marked as failure whenever my TestNG testcase/scripts fails

Using Jenkins we are executing our TestNG XML through windows batch file. My build is getting marked as failure when any of my test cases fails. For example: - I have 5 test cases inside my TestNG ...
2
votes
3answers
41 views

How to implement a lock in Selenium (Java)

I want the Script Openfile.exe to only if the previous one i.e CreateNew.exe has finished Right Now whats happening is When I run TestNG.xml file it runs all the @Test Priority wise and within 5 sec ...
1
vote
1answer
27 views

Selenium Java Robot - How to Click on particular location(X,Y) of Firefox browser?

I'm currently using a robot to click at a location on the screen as I've had issues with clicking a button that has a specific ID. e.g. Button_1401. This works fine up to a point, a few problems I've ...
-1
votes
1answer
11 views

Firefox browser unable to connect [on hold]

My script is not running even by using selenium 2.53.1 and firefox 47.0.1. Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms.this error occur.
2
votes
3answers
141 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 ...
3
votes
2answers
99 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 ...
17
votes
3answers
57k 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
14 views

Run testing on china servers [on hold]

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
72 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
998 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
61 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
44 views

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

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
118 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
73 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
26 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
32 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
100 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
28 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
46 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
66 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
113 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
51 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
488 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 [closed]

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
28 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
285 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 ...