0
votes
0answers
12 views

What configuration i need to make to use webdriver in java? I want to get the current url after url is loaded

I tried using jar files as library but there is exception.What configuration i need to make to use webdriver in java? I want to get the current url after url is loaded.
0
votes
0answers
11 views

Click table elements of table inside iframe with Selenium webdriver

The content I am trying to click on is inside table of a table in an IFrame. I can switch to the IFrame, but cannot click on the link test that goes to another page. List<WebElement> click1 = ...
0
votes
1answer
12 views

How do run each browserdriver based on enum list value?

Hi I am using the code found in the first answer on this page: Click Here I an able to run this successfully and choose the browser by changing environment USED_DRIVER line for a number of different ...
-1
votes
0answers
14 views

Selecting and changing position of an SVG element in selenium webdirver using Java

I'm trying to automate a web application where I need to click on rectangles, move them to a particular (x,y) position and connect them(like a activity diagram). Default Positions ...
0
votes
1answer
25 views

Maintain and re-use existing webdriver browser - java

Basically everytime I run my java code from eclipse, webdriver launches a new ie browser and executes my tests successfully for the most part. However, I have a lot of tests to run, and it's a pain ...
0
votes
0answers
31 views

Element not found error while selecting dropdown in Java selenium

Here is the code i have written I get the below error when the weblist selects second user from drop down the Error is Caused by Element not found in the cache - perhaps the page has changed since it ...
6
votes
1answer
57 views

Selenium Test Optimization Tips

I am in the process of optimizing my selenium scripts and I have noted down the following points,I would be great if some experts would comment on this and whether its worth the effort. 1) Using CSS ...
0
votes
1answer
41 views

Asserting a Page Using selenium

I Am new to selenium. my question are: 1) How to assert whether particular page loaded or not or id present in the page through selenium web driver.(Using Java code) 2) For best performance in ...
0
votes
0answers
43 views

Selenium WebDriver cannot click on element (works only on 1 of 2 pcs)

I'm using Chrome and Selenium with Java to do some automation testing. What could be the issue for getting the element cannot be clicked at x, y on 1 machine, but working perfectly on another? The ...
0
votes
3answers
73 views

Not able to select element from drop down list

I am facing a problem that i am not able to select element from drop down list to proceed further. The URL for reference site is "http://www.rechargeitnow.com/needrecharge.jspx" I tried the code ...
1
vote
1answer
35 views

Unable to locate element: {“method”:“id”,“selector”:“sysPublishDateDate”}

I tried call the textbox. but i am getting the following error: Unable to locate element: {"method":"id","selector":"sysPublishDateDate"}. Here come i am attaching my code with this: try{ ...
0
votes
0answers
20 views

Is it possible to make dynamic tests in testNG?

Is it possible to make test sets in testNG which execute based on some condition. For example, let's say I have captured some 100 odd web-elements and I have 6 common tests to run on each of this ...
-1
votes
0answers
103 views

Handling the popup window in selenium webdriver doesnt work

Webdriver launces browser and navigates to the URL and clicks a link in the application, then a new browser with pop-up window appears and the we can't get any control with the browser till we close ...
-2
votes
0answers
49 views

After getting selected value of dropdown i get error

Here is my problem: i read value of dropdown list using method: public String getSelectedValue(String id){ String selectedOption = ""; report.println("Start: getSelectedValue, id = "+id); ...
1
vote
1answer
41 views

Is it possible to automate Oracle Forms through Selenium?

Can anyone share your views whether we can automate Oracle Forms through Selenium? One of the forms doesn't contain any locators (web elements) and only contains JavaScript functions. Alternatively, ...
0
votes
4answers
62 views

I don't want to write driver.findelement(By.xpath(“”)) again and again

Hi this is the code below: What I want to do is this build a function in which i just pass the value of XPath, so i don't have to write driver.findElement(By.xpath("")) again and again. ...
-3
votes
3answers
69 views

How to click the nearest link

Lets say we have a table of people. In each row there is a picture, a name, a city and some social buttons, like PM, add as friend, follow. How can I "Add as friend" a certain person? There are 10 ...
-1
votes
0answers
38 views

Webdriver ExpectedConditions > textToBePresentInElement

I am trying to wait for an text to be present in element using one of the expected conditions below is my html code <label id="x-auto-116" class=" x-component" style="font-size: 10pt; white-space: ...
0
votes
0answers
31 views

Why can't I use the selenium.(etc…) library?

When I try to use the selenium. library to perform commands, they don't work. I've imported the import com.thoughtworks.selenium.*; library but I get a java: can't find symbol error. ...
-1
votes
1answer
50 views

Java Selenium WebDriver - correct exception handling techniques when unable to locate window

I'm using Java and Selenium to automate some test cases. This involves loading a single page with search results and iterating over each 100-1000 links on that single page. Setting the test config to ...
0
votes
2answers
48 views

How to check the link is enabled in Webdriver using java?

I have searched the forums before posting this issue here. I have found some answers but i am not able to get the success from the answers in that. My issue is How to check the link is enabled in ...
1
vote
1answer
36 views

Issue while clicking on 'find hotels' using Selenium-Java

I am using Selenium (web driver) - Java. I picked a travel site to do demo of automation. On this travel site, at home webpage, I need to place following input before submit the form. Provide City ...
0
votes
1answer
22 views

GivenStories is not working in JBehave

I need to include some preconditions in my Main story. I have used the Givenstories: in my Main story to achieve it. But i has no effect. My main story start running with out calling the precondition ...
0
votes
2answers
44 views

Why can't I interact with elements within the iframe?

I'm trying to parse and manipulate some data via Selenium and Java (using Firefox as a browser and Ubuntu as an OS). I want to type to <textarea> within an <iframe>: Main Form: ... ...
2
votes
0answers
54 views

WebDriver : Automated Code Generation without using Selenium IDE

My Companys website is compatible only with IE. So i cannot use IDE for recording webdriver scripts. There are HTML pages which has about 100 or 200(not exact count) of textboxes and Dropdowns. ...
0
votes
1answer
35 views

How can i load a story file from a different folder in JBehave

I need to have my mystory.story file and MyStory.java in different folders. Below is my configuration, @Override public Configuration configuration() { return new ...
0
votes
2answers
54 views

java sendkeys Error keys should be a string

I'm getting an error when trying to pass in a username and password to a form field using sendKeys. Below is my User Class followed by my test class. Does anyone know why the application is not ...
0
votes
0answers
43 views

Count number of redirects using Selenium Webdriver

I am using Selenium and Webdriver to verify that a webpage or a URL has certain element present for example a drop down box. However I have seen that on landing on certain page,it gets redirected to ...
-2
votes
0answers
30 views

how to copy a message prompted on a pop up window using selenium webdriver and paste in on console

I am automating a web application using selenium web driver. I need to copy the message prompted on a pop-up window in the application and paste it on the console. Could anyone please help me with ...
2
votes
2answers
66 views

how to find child (not all descendants) elements via an existing element (not xpath)

I am trying to find the children of an already found element. The problem I am having is that I can seem to only get all descendants of an existing element. For example, given the following HTML ...

1 2 3 4 5 19
15 30 50 per page