Skip to main content

Questions tagged [selenium]

Selenium is a portable software testing framework for web applications. From Wikipedia: http://en.wikipedia.org/wiki/Selenium_%28software%29

Filter by
Sorted by
Tagged with
1 vote
2 answers
69 views

End2End/integration Testing in Java with Selenium - how to get a good test structure - looking for experiences [closed]

At work I am currently tasked to implement End2End/integration Tests for one application using Selenium. we have an project consisting of a frontend and multiple backends (spring-boot apis). The ...
KilledByCheese's user avatar
4 votes
2 answers
191 views

How to check a solution method submitted by a user?

I am developing a website somewhat like leetcode, however, it will be for website testing using Selenium WebDriver.My service will provide different websites, along with various tasks that describe ...
Yahya Abdul Majeed's user avatar
-3 votes
1 answer
164 views

How does a site API determine the difference between a user and program request in a browser?

So this is in regards to scraping yes; no language in particular. Some sites allow you to see a JSON modal if you pull it directly from a web browser. But, at any notion a program is used, immediately ...
herboren's user avatar
0 votes
1 answer
51 views

How would you have a fallback for html insert when the html has changed?

Given a website, our customers will pick a spot on their website and we record an xpath to that location. Our software is DNS integrated, similar to cloudflare, and we manipulate the origin's html ...
ericraio's user avatar
-3 votes
1 answer
88 views

Selenium and Junit: Does it make sense?

Simply, given that Selenium is a testing tool, it seems redundant to combine Junit with Selenium tests. Does one write the Selenium test and then a separate Junit test of the Selenuium test or should ...
releseabe's user avatar
  • 529
-1 votes
1 answer
265 views

How to do test-driven front end development?

I'm trying to rapidly develop my frontend, but every time I change my code I find myself refreshing my browser and running some macro to test whether the changes in my code solved the problem. I ...
libby's user avatar
  • 115
3 votes
2 answers
1k views

Unit tests vs Automation testing

I'm a C# developer & never worked before on either unit tests or Selenium browser test automation. For a current assignment, there is an existing Visual Studio solution that has a project that ...
sukesh's user avatar
  • 165
1 vote
1 answer
317 views

Create a common interface to use N libraries and define specific behaviours

I am creating a browser automation library that is capable of using Puppeteer(automates chromium) and Selenium(automates all major browsers), but the goal is to also be able to add more libraries in ...
Joao Vitor's user avatar
1 vote
2 answers
148 views

In BDD - How do I automate tests up front for things that don't exist YET

My team is just starting with BDD, and we are learning to write scenarios in a GIVEN, WHEN, THEN format. This will position us to start to automate our tests (with selenium) at the start of sprint, ...
EALJAS's user avatar
  • 27
3 votes
1 answer
323 views

Automated Testing: where do I put Selenium?

I'm working on a Java application, it's a middleware between two ticketing webapps. I want to write end2end tests using Selenium to test functionality. Let's say my testing process goes like this: I ...
Asoub's user avatar
  • 133
-3 votes
1 answer
469 views

TestNG runner when using @DataProvider combined with apache poi does not execute tests sequentially

EDIT: I have an ExcelUtility.java class to get cell data from it and pass it on to the tests methods in my test class. I am reading from 1 excel file. The excel file has 3 worksheets. Every worksheet ...
me2me2you2me's user avatar
9 votes
6 answers
4k views

Which stage of Agile (SCRUM) should we start creating automation tests?

A little background of me - I'm a manual tester for almost 2 years within an Agile environment using SCRUM (1-2 weeks sprints). So I'm wanting to introduce automation testing in my work using ...
Jay's user avatar
  • 101
2 votes
1 answer
2k views

Simple parallel multithreading script

I'm trying to write a python script that creates 10 threads at a time and runs until I stop it (ie closing the console). I just need it to do basic logging, so when it fails, its just logs a failed ...
Ke.'s user avatar
  • 123
1 vote
0 answers
73 views

How to improve this web app testing process?

My boss had an idea of simplifying tests to English like statements so that non programmers could write tests as well. We chose Lisp as the syntax in which the tests would be written. This testing ...
Abhirath Mahipal's user avatar
1 vote
0 answers
52 views

Pros and cons of asserting on the DB level in selenium tests

Consider a Selenium test that does some steps on the UI (e.g. fill a field and then click a save button), and afterwards checks with a DB query if the data entered in the new field was really saved ...
Attilio's user avatar
  • 487
4 votes
2 answers
3k views

How to make a webdriver run reliably in Selenium?

I have been having quite a time getting this to work reliably for 100s of thousands of terms and potentially millions of pages per source and ETL the resulting data into a database in an automated ...
user3916597's user avatar
1 vote
1 answer
454 views

Is using both Selenium and Mocha redundant?

I am learning React+Redux now and came to the testing section. Many people use Mocha or Jest to test React components, so far so good, makes sense. I previously have experience using Selenium and I ...
ScienceSamovar's user avatar
2 votes
1 answer
524 views

Using Selenium in a Web Service

Given that a local copy of the Selenium server and web drivers are required to run an automation test, i.e... junit-4.10.jar selenium-chrome-driver-2.0a4.jar selenium-java-2.53.0-srcs.jar selenium-...
Martin Erlic's user avatar
5 votes
1 answer
2k views

Automated Tests on Dynamic Content

I'm doing SQA work for several Kendo-based sites that have many tables (some are hand-made by our devs). These tables have a lot of rows, columns, pages, and data filled in them- so I'm basically ...
8protons's user avatar
  • 1,369
-1 votes
1 answer
75 views

Is there a benefit to using a specific language with Selenium WebDriver?

As I begin to make the leap from the Firefox Selenium IDE to Selenium 2, I'm realizing that a significant portion of tutorials, guides, books, and documentation regarding WebDriver is based in Java; C#...
8protons's user avatar
  • 1,369
0 votes
1 answer
192 views

Seeking advice on design strategy for Java application

I'm a very new programmer developing my first application in Java as a side project for my employer. I'm a part-time student working full-time hoping to eventually score a developer job, and my ...
drs's user avatar
  • 3
0 votes
1 answer
2k views

UI Testing and Code Coverage [closed]

My company wants me to write UI tests that test the business logic (all of the use cases MUST be independently testable) I decided to do it in selenium. I have managed to create a decent product (as ...
j.a's user avatar
  • 19
2 votes
2 answers
107 views

Is it a bad practice to return third party reference from public method?

Let's consider an example from WebDriver where I create two different classes to deal with page object, one stores the element locator and other actual operations dealing with page - public class ...
Tarun's user avatar
  • 942
3 votes
1 answer
124 views

Is it unreasonable to implement a small domain specific scripting language?

At my new job, they are currently spending scores of labor hours that we don't have to do manual QA testing after every build. Nothing is automated at all. (We can only afford three developers, and ...
TBridges42's user avatar
2 votes
1 answer
356 views

How to write tests for browser automation script

I have a couple of scripts (two in Python, one in Java) that use Selenium to drive a browser and download files from a website. I need to do some major refactoring before I do a major expansion, so I ...
TBridges42's user avatar
3 votes
1 answer
68 views

How do I manage state better in front-end tests

I write a lot of front-end tests, and the tests fail really often. To be honest, they're hard for me to write. I feel like I have to do a lot of work keeping track of the state of the page. It seems ...
michaelsnowden's user avatar
1 vote
2 answers
201 views

Writing Selenium Tests - Modifying Markup Under Test [closed]

We'd like to know what you view as best practices and what has worked for your projects My organization is in the beginning phases of creating a Selenium test suite, and have had some early ...
niiru's user avatar
  • 121
3 votes
1 answer
260 views

Testing async code: are long sleeps acceptable?

I am testing some AngularJS code using Selenium. Angular updates the DOM in unpredictable order, sometimes completely async (via setTimeout), so it is difficult to know when the DOM has been ...
billc.cn's user avatar
  • 630
0 votes
2 answers
4k views

Selenium Testing w/ dynamically generated element id's: XPATH or CSS selectors?

Background: I'm an intern tasked with learning Selenium; my organization plans on having QA/Testing use it to simplify testing. We use JSF and WebSphere Application Server. One of the persistent ...
Steve J's user avatar
4 votes
2 answers
5k views

BDD, Cucumber best practices

I'm trying to understand some best practices when it comes to BDD and Cucumber. I've only recently started to use it, and the first feature I have written a test for is testing a search feature, more ...
PDStat's user avatar
  • 793
12 votes
3 answers
1k views

Unit Testing Competition

My employers runs a monthly unit testing day competition. One entire day is dedicated to writing unit tests -- obviously we do more testing throughout the month, but this is an entire day -- and the "...
Shaun's user avatar
  • 249
0 votes
1 answer
19k views

How do I actually use Selenium to automate UI testing? [closed]

We have a large inventory system where we work and making changes has the possibility to break things in other areas. This happens a lot, and it is hard to manually test for everything every time ...
ComputerLocus's user avatar
4 votes
3 answers
916 views

Is TDD the best software development philosophy? [closed]

Question: Why not just use BDD-style acceptance tests and do away with unit tests, integration tests, functional tests and all other tests? I have been doing some research into the differences ...
Noobcanon's user avatar
0 votes
1 answer
2k views

Splitting single Class into multiple Classes

I am writing automated test scripts with Selenium Webdriver (Python) and I try to follow the correct programming practices, specifically the Object Oriented methodologies, where possible. At the ...
Eugene S's user avatar
  • 119
2 votes
1 answer
349 views

How do I Create Automated UI test code for application developed using Domain-Driven-Design with very little concrete UI requirements?

We are developing an application using Domain-Driven-Design(DDD). We have to come up with Automated UI Test code. The customer has used 3rd-party GUI Administration template (https://bootstraphunter....
CS Lewis's user avatar
  • 123
4 votes
2 answers
552 views

Whose responsibility is it to create the interface and/or acceptance testing? Developer or QA?

I am a backend developer and always create tests for my applications. Recently I study and apply the interface tests (using selenium), but I doubted whether I who should create these tests, developer ...
ridermansb's user avatar
5 votes
3 answers
5k views

What is the best use case for selenium?

I've been trying to develop web applications while at the same time creating the testing. I understand unit testing, I can declare a test method and test specific methods in my application. But I don'...
Eddie Martinez's user avatar
5 votes
2 answers
2k views

Should I have different automated Selenium tests for different screen resolutions?

A website I'm creating is going to have three breakpoints: desktop, tablet landscape, mobile. Should I write a test for each resolution?
user2980081's user avatar
3 votes
0 answers
1k views

Creating an automated test framework for UI smoke testing

I am doing my thesis on the subject of automated UI testing at a company that applies continuous integration to their projects. The company builds intranets in Microsoft SharePoint 2013 and my task is ...
Daniel B's user avatar
  • 141
2 votes
1 answer
861 views

Automating tests in a browser not supported by selenium

I work on a company that have a payment system that runs under a executable kiosk instance of internet explorer 7. when the application is running the process name is not similar with iexplore.exe or ...
Renato Prado's user avatar
0 votes
1 answer
859 views

Selenium-Nunit Program Structure

My office has a suite of web reporting engines written in VB. All in all there's about 300 reports with varying displays depending on the data being input into them. I'm trying to establish an ...
Jacobm001's user avatar
  • 135
3 votes
3 answers
370 views

Should selenium tests be written in imperative style?

Is an automation tester supposed to know concepts of OOPS and design patterns to write Tests in a way where changes & code re-use are possible? For example, I pick up Java to write cucumber step ...
Amogh Talpallikar's user avatar
2 votes
3 answers
7k views

Should cucumber step definitions in Java be static methods or instance methods?

We are new to using cucumber with selenium to write automated test suites. Our initial approach was to have one java class per feature file. Now we added instance methods in each class for ...
Amogh Talpallikar's user avatar
0 votes
1 answer
1k views

searching for a user given word in a webpage using c# and selenium

I am trying to develop a selenium application (using c# win forms). So, while the application starts, the users will enter an app name in the text box. I have many fields such as cost, validity etc ...
vysakh's user avatar
  • 1
0 votes
3 answers
311 views

Unable to convince on data hiding

I am working on a Selenium + java project where all Web Element in a class are declared as - public class CheckoutPaymentConfirmpage extends WebPage{ public final Button btnPrintorder = new Button("...
Tarun's user avatar
  • 942
1 vote
1 answer
520 views

Should tests be in the same Ruby file or in separated Ruby files?

While using Selenium and Ruby to do some functional tests, I am worried with the performance. So is it better to add all test methods in the same Ruby file, or I should put each one in separated code ...
Junior Mayhe's user avatar
  • 1,842
3 votes
2 answers
1k views

Which Continuous Integration for Selenium 2 with TestNG

So I have a Selenium Automation project (using Maven). I'd like to be able to set my tests to run overnight and possibly email a report daily to the team. Which CI would be most suitable for TestNG....
Lewis's user avatar
  • 33
6 votes
2 answers
737 views

Have I mistakenly assumed that my routines are loosely coupled?

My Selenium test structures goes as - Data Object class - public class RegistrationData { String firstName = "test first name"; String lastName = "test last name"; // Getter Setter Here } ...
Tarun's user avatar
  • 942
2 votes
3 answers
381 views

Writing selenium tests, should I just get it done or get it right?

I'm attempting to drive my user interface (heavy on javascript) through selenium. I've already tested the rest of my ajax interaction with selenium successfully. However, this one particular method ...
Peter Smith's user avatar
  • 2,577
0 votes
2 answers
551 views

Which recorder do I use for Selenium 2 [closed]

We have a web application that we want to start running regression tests on, and have pretty much decided that we will be using Selenium 2. Not all of the testers are programmer savvy. Is Selenium IDE ...
runaros's user avatar
  • 171