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

2
votes
3answers
81 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
43 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
77 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
61 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
3answers
468 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
227 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
56 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
131 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
196 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
77 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
170 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
242 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
54 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
88 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
1answer
1k 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
39 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
108 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
69 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
137 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
42 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 ...
2
votes
3answers
508 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
89 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
3answers
76 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
700 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
332 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
125 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
79 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 ...
0
votes
4answers
90 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
100 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
163 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 ...
0
votes
1answer
184 views

Selenium hangs for modals in firefox browser for very long time

After opening the modal window or modal overlay , performing any click operation within the modal takes very long time. It doesn't throw any exception neither does the execution stops. ...
2
votes
4answers
108 views

What set of toolkits and frameworks should I learn to be considered as a good tester

I am very new at testing, so my apologies in advance if my question is very primary. I started my job as a Tester 4 months ago. I am using Java, Selenium and Sikuli to write tests for applications. I ...
0
votes
1answer
40 views

Dataproviders and Asserts

When using DataProviders, on TestNG, my test method has asserts that will fail since the data passed in navigates to a different url. Is there a way to work around this, i.e. a way for the data to ...
2
votes
4answers
960 views

Which language to choose for Appium - Python or Java?

We have an iOS application (written with Obj-C and now starting to incorporate Swift) that we want to write tests for using Appium. Our test team comprises of people who have little programming ...
1
vote
2answers
149 views

Running application doesn't execute any code but opens a new window

I am trying a build an automated testing framework, using Selenium WebDriver to simply login a website. However, when I run the following code, the only thing that happens is a new internet explorer ...
1
vote
2answers
71 views

Where to store XPath variables

Where should I store XPath variables - in a class or in an external file? What are the (dis)advantages of these approaches?
0
votes
1answer
75 views

Verify if popup appears using Selenium

I want to verify if a pop-up appears, so I went to inspect element of the link and I tried to match the ownerID from the element to that of the url that pops-up but the issue that I have is that when ...
1
vote
2answers
50 views

Existence of an element

I have seen a couple of ways to test if an element exists. One way: private boolean existsElement(String id) { try { driver.findElement(By.id(id)); } catch (NoSuchElementException e) ...
0
votes
0answers
350 views

Stale Element Reference Exception:Element is not attached to the page document

I am getting stale element reference exception while running a loop. WebElement ControlTypeOp=driver.findElement(By.xpath("//select[@name='ctl00$ContentPlaceHolder1$ddlControl']")); Select ...
2
votes
2answers
100 views

Using Selenium to test SOLR queries

I have a general question, which pretty much is, How do I test SOLR queries using Selenium? Suppose we have a SOLR query JSON file, which pretty much looks like a huge pile of text containing values ...
1
vote
3answers
4k views

How to continue script when element is not found in selenium

I am using selenium web driver and appium as this is mobile application automation, I am trying to check that if element is there or not and based on that I have put conditions. long starttime = ...
0
votes
0answers
55 views

search string text in search grid is not working using send keys

I am passing sendKeys( ) through search grid to search a particular string.I am able to click that search text but its not clicking the search string ,Below is the html for that search text: ...
6
votes
5answers
1k views

I want to learn Selenium but not sure about the language I need to learn for automation

Java or Javascript? or maybe another language? Please help me choose the programming language I should learn for Selenium automation and its benefit over other. Any pro's and con's?
0
votes
2answers
159 views

Where to find complex test scripts using Selenium/WebDriver? [duplicate]

I am looking for complex test cases that will challenge my WebDriver Java skills. Does anyone have such an example? Links? Own test cases that has put your automation skills to the test?
-3
votes
2answers
1k views

Where can I download Selenium-2.47 or Selenium-2.47 JavaDoc Jar file [closed]

Where can I download Selenium-2.47 or Selenium-2.47 JavaDoc Jar file?
1
vote
1answer
213 views

How to setup selenium , projects and eclipse at one central point like server so multiple tester can write automation code at same time?

I want to set Eclipse, Selenium and our projects at some central level from where other tester can access code, modify code, update code etc. Until now I was alone doing automation scripting to my ...
2
votes
2answers
2k views

How to find real world Selenium projects

Where can I find sample or real Selenium projects. All the material I can find on github and on internet are basic, and never intermediate or advanced. How does a real Selenium project look in real ...
1
vote
0answers
342 views

Selenium sendKeys() different behaviour for Chrome, Firefox and Safari [closed]

Below is simple snippet of code: @FindBy(className = "element-to-press") private WebElement elementToPress; // some other code Keys move = Keys.ARROW_DOWN; gridContainer.sendKeys(move); In ...
0
votes
1answer
131 views

Upcasting FirefoxBrowser to Webdriver

When we write the code to automate the browser then what is the need of upcasting in the code Webdriver Some_Variable = new FirefoxDriver(); //Run time Polymorphism My question: What is the need to ...
0
votes
3answers
182 views

Java concepts needed to learn selenium [duplicate]

I am a Manual Tester having 2.9 yrs of experience Now that i want to learn Selenium., can anyone tell me what all i need to learn in Java which helps in learning Selenium