0
votes
0answers
10 views

Selenium: how to execute user-extensions.js from java code

I want to test a smart GWT app using Selenium. For this I need to add up 1. user-extensions.js 2. user-extensions-ide.js in the IDE. This gives an additional scLocators for locating GWT elements on ...
0
votes
1answer
32 views

How to perform mouseover function using selenium webdriver?

I want to do mouseover function over a drop down menu. When we hover over the menu, it will show the new options. I tried to click the new options using the xpath. But cannot click the menus directly. ...
0
votes
0answers
21 views

Using TestNG,when running single class in TestNG xml browser is loading multiple times

When running single method in TestNG,instead of one time browser is loading multiple times.So that test is getting failed.Please help me in sorting this issue. ...
0
votes
0answers
30 views

Getting javax.mail.AuthenticationFailedException in eclipse console,when using property file to retrive username and password

Code: package maintestcases; import org.testng.annotations.Test; import java.io.IOException; import java.util.Properties; import javax.activation.DataHandler; import ...
0
votes
1answer
74 views

Selenium : Handling Loading screens obscuring the web elements. (Java)

I'm writing an automated test case for a web page. Here's my scenario. I have to click and type on various web elements in an html form. But, sometimes while typing on a text field, an ajax loading ...
-1
votes
2answers
37 views

java.lang.NullPointerException when running a testcase via Selenium webDriver in Chrome

There's my class that uses Selenium WebDriver and throws the error. public class Test_Chromedriver { public static WebDriver driver; public static void main(String[] args) { try ...
0
votes
1answer
28 views

InternetExplorerDriver hangs after click() is called on a button

I'm bound to using IE for a certain test and all goes well until I try to press a button, which generates a report. WebElement btn=driver.findElement(....);//gets the button btn.click(); // this does ...
0
votes
0answers
25 views

Unable to execute selenium webdriver code from perl webpage through ant

Let me tell you about my setup first, I have Selenium Webdriver configured in eclipse and also installed ant in windows server 2003. I'm able to execute ant command from command prompt in windows the ...
-2
votes
0answers
20 views

how to work with maven, selenium, java and TestNG together. and run test suite [on hold]

can anyone please tell me or share some link about how to work with maven, selenium, java and TestNG together and run test suite. I know selenium, java and testng very well but don't have much ...
0
votes
1answer
30 views

Selenium: Data entered in form with multiple tabs disappears sometimes

I have a web app with a complicated data entry form that has some tabs that hold entry fields for various configuration items. I am writing a test that enters data in fields on different tabs and then ...
0
votes
2answers
68 views

What is the shortest way in Scala/Java to grab all information from a website AND parse it for buttons(including ID and Class if present)? [on hold]

I need to grab the id's, classes, and any other information included in the tags. I'm working in Scala, Java is fine though. This is an exact match parser. It will only grab "button". "button id=...", ...
0
votes
1answer
23 views

Using Selenium IDE's getEval command with FirefoxWebdriver

Hello, I have a working Selenium IDE script that is working using this code: getEval | ...
0
votes
0answers
30 views

Run Internet Explorer with enabled add-on using Selenium (Java)

I use Selenium Internet Explorer driver with Java. I can register my add-on with command runsvr32.exe add-on.dll But right after opening IE it asks about enable or disable addon. How can I ...
2
votes
0answers
19 views

Curious Memory Footprint for Java.exe when running Selenium-Grid

Java noob here. I am seeing 'strange' memory behaviour when running a Selenium Grid with the following java.exe process. java.exe -jar selenium-grid.jar -role hub -port 84 -timeout 100 The ...
0
votes
3answers
27 views

Java How to copy part of a url in webdriver?

I want to know how can copy the "?ned=us&topic=t" part in "http://news.google.com/?ned=us&topic=t". Basically, I want to copy the path of the url, or the portion after the ".com". How do I do ...
1
vote
1answer
42 views

Assert Fails Even Though It Shouldn't

I have the following two asserts which are checking the checked attribute of a check box: Assert.assertEquals(true, notificationCheck.getAttribute("checked").equals(true)); Assert.assertEquals(true, ...
-5
votes
0answers
34 views

I want a code to compare current date with the dates stored in date array using web driver [on hold]

After comparison, I want to identify and print the date which is farthest from current date.
-2
votes
1answer
31 views

Handling Ajax using Selenium 2 [on hold]

I found this code to handle ajax requests. Can someone let me know how to implement the same in Java? public void WaitForAjax() { var wait = new WebDriverWait(driver, TimeSpan.FromSeconds(15)); ...
-3
votes
1answer
38 views

Mail sending is failed using java

I have used java mail API for sending mail in my application using java and web driver.My requirement is to send a mail whenever a link/url is down.Even though mail is send when i give url incorrectly ...
0
votes
0answers
61 views

File upload in selenium webdriver

I am trying to file upload.I have tried this code driver.findElement(By.id("documents")).click(); driver.get("C:"+File.separator+"exp"+File.separator+"tt.docx"); ...
1
vote
2answers
55 views

Element is no longer attached to the DOM

I have a question regarding "Element is no longer attached to the DOM". I tried different solutions but they are working intermittent. Please suggest a solution that could be permanent. WebElement ...
0
votes
1answer
60 views

ChromeDriver — The dreaded "Element is not clickable at point (x, y). Other element would receive the click

I have a web app that I'm trying to write selenium tests for, and I have run into a problem with the Chrome driver. There is a wizard-type interface that users can employ to fill out a form. There is ...
0
votes
2answers
35 views

How to pass ant parameters to junit/selenium tests?

Before i ask my question let me say, i've read through these related questions: How do I pass an argument to an Ant task? How do I pass parameters to a Junit test from Ant? Here is what i'm ...
-1
votes
0answers
36 views

Test coverage tool for cucumber+selenium+maven test cases [on hold]

I have been written some UI automation test cases using cucumber and selenium in a maven project. I have searched for test coverage tools online, but I haven't gotten any reliable one that works. Can ...
-2
votes
0answers
33 views

Need to do an automation testing for UI and functionality of website , is there any othere UI tesing tool can be plug with selenium in java? [closed]

I Need to do an automation testing for UI ( webpage ) and also for functionality for our website.I hope selenium is only a Functionality testing tool. So I am searching , is there any UI testing ...
0
votes
1answer
43 views

Selenium 2 in Java JUnit Test Error: Could not start a new session

I'm designing a website login test program in Java by using Selenium2. When I run it in JUnit in NetBeans, error shows up: "testLogin(JUnitTest.LoginTest): Could not start a new session. Possible ...
0
votes
1answer
46 views

Running webdriver related code in a JFrame

HI i am a java beginner and i have this serious problem for completing my project. I wrote a code similar to example shown below for another site and unable to run that in a action listener of a ...
0
votes
0answers
36 views

Selenium Web Driver:How can I include the details of emailable report of testNG in email using java

I have written below mentioned code to attach TestNG's emailable report in email using java. Now I want to paste the details of emailable report in body of the email using java.Anyone having idea on ...
-2
votes
0answers
49 views

How to select the next date from the calendar using selenium webdriver

jQueryWebElement datePickerSelected = selenium.jQuery("text()='"+str+"'", picker); Str has the string that is tommorrow's date. Picker shows the calendar.When am using Click(); function , the ...
1
vote
0answers
47 views

Generic return type method: How do I avoid BOTH unchecked cast warnings and the need to cast the return value when calling the method?

I am building out a Selenium automation framework using the Page Object design pattern and I have a method that returns one of three page types. They all extend SecuredPage, which extends Page. I am ...
0
votes
3answers
45 views

How to quit webdriver, while browser already closed by application

I'm testing web application with Selenium Webdriver (IE). After signing off, application closes the browser, but quiting the webdriver cause crash popup for IEDriverServer.exe which hangs the flow. ...
3
votes
0answers
57 views

CSS is not displayed in Selenium WebDriver

I have a really strange error. I wrote a JSF-webpage. The page functions as expected if I test it manually in Firefox. But, if I try to test the site with Selenium(FireFoxDriver), the site looses its ...
0
votes
0answers
21 views

HtmlUnit: Get UnexpectedPage after downloading a file

I need to download different files in different pages with htmlUnit webDriver. I cycle on the pages and for every page I click on a input field to trigger the download. For the first download, I click ...
0
votes
1answer
38 views

implementation of selenium as webCrawler

I am writing a web crawler via Selenium in java. Previously I used libraries like jsoup and HtmlUnit to make them but recently I ran into trouble with javascript and ajax dependent pages.After doing ...
0
votes
0answers
20 views

How to use TestNG with Selenium WebDriver in Twist?

I am using JUnit with Selenium WebDriver in Twist. How can I use TestNG instead of JUnit with WebDriver java code in Twist?
0
votes
0answers
25 views

Integrating jBehave + Junit + Springs + Selenium

I have one integration-test written in JUNIT 4.8.2 (Selenium and Spring annotations are used in it). Now i have to integrate these with JBehave. How this can be achieved? My TestClass looks ...
0
votes
2answers
81 views

Use Selenium to find all “hoverable” elements on a webpage

Is there any way to use Selenium to find all of the elements that will somehow alter the page whenever they are hovered over? (Such as triggering dropdown menus, tooltip texts, or just simply changing ...
-1
votes
1answer
25 views

Count the number of rows with xpath but .size() is not available

I'm trying to count the number of rows in table and based on my research for webdriver, I should be using as code below. However, I am unable to see .size() method populated and i'll be appreciated if ...
0
votes
3answers
64 views

Write a console message from Eclipse to a file

How to write a console message from Eclipse to a file? Please review it and I would appreciate if any one give the solution. My sample program is given below this is the console message: Invalid ...
0
votes
1answer
66 views

how to select a value in drop down randomly using xml in selenium web driver with Java

Please help me in selecting a random country name from country name dropdown each time running the script. I want to try using xml. XPATH of dropdown is .//*[@id='intselect'] HTML code: <select ...
0
votes
1answer
57 views

Waiting for a chart to refresh, selenium Java

I'm trying to find an appropriate ExpectedConditions method for this situation. I have a chart and I want to check the text in each row after re-sorting the chart. Problem is, when the chart is ...
0
votes
1answer
30 views

Not able to click on a javascript link using selenium

I am not able to click on a javascript link using webdriver. Below is the HTML code: <a href="javascript:OpenWindow(&quot;rsm7&quot;,&quot;CHG:Change Management ...
0
votes
0answers
43 views

Button not clicked with Selenium HtmlUnitDriver

WebDriver driver = new HtmlUnitDriver(true); // (true) enables javascript driver.get(url); List<WebElement> edits = driver.findElements(By.className("form_input")); ...
1
vote
3answers
111 views

How to open specific browser using selenium webdriver

I am using lang :java framework: testNG my system has 3-4 versions of Mozilla installed, how can i open instance of specific version of Mozilla. Suppose i have 3.5, 3.6,.... version of Mozilla ...
0
votes
2answers
40 views

What is Modal dialog in Selenium?

What is Modal dialog in Selenium Webdriver? If this type of dialog how to handle? Please help me for finding the solution. I am using java as programming language.
-2
votes
0answers
161 views

Fresh start of browser with parameterization in selenium webdriver [closed]

Sorry if you don't understand headline. My question is we use three notations in selenium webdriver. @beforeclass @afterclass @test i want to parameterize my test case by giving different ...
1
vote
3answers
96 views

Selenium - how to get element and it's subelements text

Short version: I can get the chat message (using selenium's By.xpath in java) but I want to include smiles into proper places. Longer version: Hello, I've been tackling this interesting issue where I ...
0
votes
0answers
19 views

Telerik RadComboBox Automation with Selenium WebDriver / JAVA [closed]

I've tried many different ways to automate the Telerik RadComboBox, but have been unsuccessful. Apparently, no one else in the internet has figured it out either. Please be a hero and solve this: ...
0
votes
0answers
39 views

How to correctly build class and interface tree for maintenece using WebDriver and Java

Don't kill me, this is gona by my first question here. I'm currently learning selenium webdriver based on Java. I know more or less how to perform most of wanted by me actions but i'm strugling with ...
0
votes
1answer
56 views

issue in finding element after switchTo() in Selenium IE Webdriver

Hi I'm facing issue in trying to find element in the new window after performing a switchTo(new Handle) in IE Webdriver The code that i'm using is WebDriver driver = new InternetExplorerDriver(); ...

1 2 3 4 5 9
15 30 50 per page