Questions about testing applications written in Java, a popular programming language and runtime environment which allows Java programs to run unchanged on most hardware and software platforms.

learn more… | top users | synonyms

1
vote
1answer
52 views

Driver lost focus

I have one test case with java selenium webdriver. When I go to the login, everything is OK, but when I go to the other click in the new show, driver can´t find the object. Selenium IDE captured the ...
3
votes
2answers
128 views

How to find out which languages are supported by a website?

I am facing a problem while doing localization testing using selenium web driver and java,how to find out the languages supported by a web page? what i want to achieve is following 1. Enter the URL ...
1
vote
2answers
54 views

How high level should be my unit-test?

I have a program with many classes. I manage the DI with Guice, btw. I wanted to write in-progress tests to my code (unit tests and higher level). I have few questions\difficulties: How high ...
0
votes
1answer
286 views

Phantomjs stack error

[ERROR - 2015-11-26T10:17:14.013Z] Session [9dd2e3a0-9426-11e5-986e-45afd4903e2f] - page.onError - msg: TypeError: null is not an object (evaluating ...
1
vote
1answer
196 views

How to open an item in java menu using QTP

The task is to open (click) menu item, e.g. File >> Open using QTP 11.0 Object Spy identifies first level menu element (and does not open drop-down pane, so items like New, Open... should be ...
1
vote
2answers
42 views

Exception Handling when accessing sub menu

I have a method that uses the Actions class to access a sub menu link. After hovering the main menu link I need to pause before clicking on the sub menu link. So I added a thread.sleep(). At this ...
0
votes
1answer
529 views

Can not find selenium webdriver element in HtmlUnitDriver but can find it in Firefox

HtmlUnitDriver driver = new HtmlUnitDriver(); driver.setJavascriptEnabled(true); String baseUrl = "http://www.biletix.com/search/TURKIYE/en#!city_sb:istanbul,date_sb:weekend"; ...
0
votes
1answer
86 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 ...
0
votes
2answers
134 views

I get an exception, “Element is no longer attached to DOM” when I run my code, but In Debug mode, it works fine. I'm using Java and TestNG

In the webpage I'm testing, there are 3 options in a drop down and on selecting each option, rows in a table gets populated. I'm just trying to locate the table value through xpath and I am getting an ...
1
vote
1answer
51 views

Is there a software that tells the number of possible flows when “inputing” an workflow?

I'm making a project that needs to break some big workflows into pieces and I need to know how many possible flows does the Workflow (that I have "inputed") before has. Does anyone know any software ...
0
votes
4answers
123 views

Escape key for Safari using Selenium

I am using Selenium webdriver (Java) and ran into a problem. I made the method, public void escape() { Actions action = new Actions(driver); ...
-1
votes
2answers
3k 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 ...
1
vote
1answer
72 views

APK 'Internet Permission' is missing on SeeTest Automation tool

Unfortunately after upgrading SeeTest Automation to v 8.7.85, we are getting an error as 'The APK file should have an Internet permission in order to launch application in instrumented mode'. We are ...
4
votes
3answers
374 views

Use Page Object vs other models for Automation in Selenium Webdriver? [duplicate]

I have been doing automation testing since last 2 years and I am following below ways for any website and mobile application automation testing. Create Global Method class where I implement all test ...
0
votes
2answers
351 views

Difference between Singleton, POM, Abstract design patterns

These are the three most popular design patterns in JAVA. Most Selenium WebDriver projects are build on these. What is the difference between these three, with examples? Does Choosing a pattern also ...
2
votes
1answer
52 views

SeeTestAutomation: Is code export/record the correct way ? What are cons?

I am working on a new mobile application testing tool called SeeTest. We have done a feasibility study and decided to opt for SeeTest as tool of choice. Now we are facing few challenges I would ...
0
votes
1answer
201 views

unable to find element

I have the following code //import java.io.IOException; //import org.apache.bcel.generic.Select; import org.openqa.selenium.support.ui.Select; import org.openqa.selenium.By; ...
2
votes
1answer
163 views

How to get an active window title between two browser tabs/windows using Selenium Java

I can switch between two tabs/windows but my requirement is to know or get active window between them. In my project, on a click of a webElement of a page a random pop(tab/window) gets opened and I ...
0
votes
1answer
659 views

Selenium webdriver-Not able to click on button which becomes visible on hovering only

Here I'm using LinkedIn for the learning purpose & want to perform the action on Edit profile=> Work experience=> Add position. Here "Add position" button comes under work experience which becomes ...
2
votes
1answer
253 views

Selenium HtmlUnit: How do I disable JS errors?

I have been working on a script for hours and I can't seem to figure out a way to make headless and automated automated. WebDriver driver = new HtmlUnitDriver( ...
2
votes
3answers
91 views

Is this a good test for a selenium developer?

My boss has given me the assignment of interviewing one of the new automation engineers. The only task left is the technical one, and I have been thinking about a good test that I could give him. I ...
1
vote
0answers
88 views

how to parse the multiple values using data bank or CSV file in OFT(Oracle functional testing)

I am working on the OATS (Oracle Application test suite) tool for OFT. Written code in java by using the property file & added the data bank to the script. It takes only the first values both in ...
1
vote
1answer
141 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
74 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
1
vote
4answers
1k views

Running selenium scripts on remote machine

I have created some selenium scripts for one of the websites of my client. The scripts are in my local machine, running successfully. I want show a demo to my Project Manager on his personal laptop(he ...
2
votes
4answers
425 views

Daily tasks/Anything fun & challenging to automate with Selenium? [closed]

I'm currently studying test automation with Selenium and Java. It's very fun, but I have only done basic stuff. I've been thinking about something fun that I can do with selenium, for instance, ...
1
vote
2answers
67 views

My page takes long time to load so am not able to identify an element from the page.Please provide me a solution

driver.findElement(By.id("oPortalUser_LoginID")).sendKeys("xxxxx"); driver.findElement(By.id("oPortalUser_Password")).sendKeys("xx"); driver.findElement(By.id("xxx")).click(); After clicking on ...
1
vote
2answers
274 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
329 views

How to pass arguments to selenium from autoit script

Autoit has a order value ,which I want to pass it to database as argument to get table contents of that order id. I tried passing from command line ,but I don't want the arguments to get passed from ...
1
vote
2answers
103 views

Webdriver : To upload images using the sendkeys() and autoit tool

What is the difference between using sendkeys() and autoit, which helps to upload images.
2
votes
1answer
237 views

Webdriver : How to upload a file using relative path in java? [closed]

Need to upload an image using the relative path, which I would like to run on both IDE and command line. Here is the code which runs with the absolute path, File classpathRoot = new ...
4
votes
3answers
461 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 ...
1
vote
1answer
82 views

Issue in executing testcases in TestNG(java)

How to run other tests in TestNG after one test is failed using Java For example: @Test(priority=1) public void Online1(){ //code } @Test(priority=2) public void Online2(){ //code ...
2
votes
2answers
120 views

Unable to click on button

For this line, driver.findElement(By.name("importbutton")).click(); It is throwing exception: Element is not currently visible and so may not be interacted with Command duration or timeout: ...
1
vote
4answers
3k views

Webdriver : How to perform scroll down an element (example div) using selenium?

The Scroll element in the page is actually a div with scroll bound to it. Here is the HTML snippet. <div class="slimScrollBar" style="background: none repeat scroll 0% 0% rgb(137, 137, 137); ...
1
vote
1answer
53 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
1
vote
1answer
214 views

Using tagged hooks to run tests with different browsers

I've looked at resources like here and here, but these solutions are not working for me. What I want to do: without involving much heavy machinery (unless I have to) and without using a third-party ...
1
vote
1answer
115 views

How to handle java dynamic objects in QTP?

How can I handle Java dynamic objects in QTP 11.0? There is a smoke test scenario where simple search is performed and the first occurance in JavaTable is selected (by double click) then sub-window ...
1
vote
1answer
270 views

How to select tab buttons in java tab panel with QTP

I want to switch between tabs in Java application using QTP 11.0. The problem is that tab buttons are not seen by qtp object spy as separate objects, the whole tab pane is seen as JTabbedPane: Any ...
1
vote
0answers
49 views

I am automating a page which will open up a PDF while clicking on a link. After that I have to do the operations in the newly opened window

This is the code for transferring control for (String handle : driver.getWindowHandles()) { driver.switchTo().window(handle); ArrayList<String> windowTab = new ...
3
votes
3answers
1k views

Python or Java for Loading and Performance testing

I'm looking to choose the best tool to perform Load and Performance testing on my web based application. The content of the application is based on Jasper reports and I want to see the behavior of the ...
1
vote
1answer
118 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
97 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?
2
votes
3answers
2k views

Cannot Instantiate class error - Selenium WebDriver

I am facing this 'Cannot insantiate class' error on running one of my test cases in Selenium webdriver using Java. Below is the class of the functionality of the test, package Pages; import ...
4
votes
1answer
758 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
184 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
142 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 ...
1
vote
4answers
121 views

Can anyone help me out in getting the tooltip

I am unable to get the tool tip from a tag. The snippet of the HTML is <table class="tiger-stripe" width="100%" cellspacing="0" cellpadding="0" border="0"> <tbody> <tr ...
0
votes
1answer
144 views

Change the title of a webpage in JUnit test with Selenium Web Driver

I want to write an automated JUnit test script with Selenium Web Driver to load a Wikipedia page and then change the title of the page loaded. import java.util.regex.Pattern; import ...
0
votes
2answers
254 views

how to read and write file on mac system using java? [closed]

hi everyone i am new to mac system, on window system we read and write data from excel sheet what about mac? if notes is an answer provide me a java code to read and write data from notes file.strong ...