Selenium is a tools suite to automate web browsers, and web application testing

learn more… | top users | synonyms

3
votes
1answer
48 views

Testing whether webapp-generated reports match expected output

I'm new to coding and have cobbled together some code to run an automated test against a web application. The code works but I have some complexity rule violations (CA1505, CA1502 and CA1506) and ...
1
vote
1answer
49 views

Login page with Selenium webdriver

I am automating a login page. I am using the page object design pattern Selenium with Java. What should I improve on in my code? ...
10
votes
1answer
981 views
-1
votes
1answer
82 views

Selenium Kijiji web scraper

I have this script working pretty well but I know that there must be many things that I could do better to make it more efficient. ...
0
votes
0answers
39 views

TESTNG Factory and beforemethod code improvement

Hei. I'm trying to find out if it is possible to simplify my framework a little bit more. The current solution works, but it does cause some code duplication for me and some other issues that might ...
6
votes
1answer
78 views

Retrieving value from HTML table

Currently all this does is retrieve data from specific columns, the final result will be that I will check the data to make sure that it passes the test cases, but I want to look at this foreach right ...
4
votes
1answer
148 views

Selenium WebDriver test for Slack

I submitted this script as part of a interview process. It was rejected and no reasons were given. I'm wondering what parts of my script were unacceptable. The script works, and satisfies the question,...
9
votes
3answers
222 views

Scraping the date of most recent post from various social media services

Task I have a large spreadsheet where each line should include: The URL of a social media account A field indicating whether the account is "active" A name and UID number for each account I have to ...
0
votes
0answers
47 views

custom login method using JavaScript and Protractor

I have written login method in JavaScript using protractor. When Login method is called, this methods waits for element (txtLogin) to be present in DOM. Once it finds the element, credentials are ...
1
vote
0answers
83 views

Select fields from a form by ID or Xpath and fill its value

I'm writing a program/tests in C# using Selenium and Chrome web driver. Everything works well, however I would like to simplify the code and make it object-oriented. I thought about extracting some ...
4
votes
1answer
299 views

Using Page Object Model in Selenium tests

I am very new to Selenium, and for my current project, I had the task of creating the automated test scripts for our website. I am the only one on my team who had any experience with Selenium, but not ...
0
votes
1answer
40 views

Implement PageObjects using TestNg in selenium

I am trying to implement page objects with Page factory using TestNg and selenium. Please advice improvements in it. Classes: ...
2
votes
1answer
106 views

ImprSimple chat bot written in python

I'd like to know if I can improve the performance of my recent bot, and maybe some design patterns too. So far, it's warning a user if it's using some bad words (which are parsed from ...
4
votes
1answer
311 views

Selecting filter checkboxes using Selenium

I am using Selenium Webdriver via Java. My method clicks on a filter check box (eg. make, model, etc.), that is passed in, from a modal. When running my method in my test class, via ChromeDriver, it ...
2
votes
1answer
53 views

Comparing web search results and storing the results in Excel

I'm writing Selenium code in Java. And below is one of the methods. ...
5
votes
2answers
546 views

Checking if text is NOT displayed

I'm currently writing unit tests in Selenium (C#). I need to do two things in this particular test: Check if 2 errors (with html container) are displayed and check if another (given) error is not ...
7
votes
2answers
125 views

Get Wikimedia attributions for images

We are using images from Wikimedia commons for some of Cardshifter's game artwork. I selected some art for each card to make a .jpg file to use in the game clients, ...
3
votes
1answer
80 views

Bot that selects web reviews based on spreadsheet entries

In my program, I prompt the user to enter a range of cities (in a spreadsheet), and then a range of review scores, and then make some decisions based on what the user has entered. Since the handling ...
3
votes
0answers
175 views

GUI for Selenium web testing

I am wanting to build web-based testing tools for test website environments utilizing the Selenium Web Driver. I am building a GUI which will contain the following: Drop-down for selecting the website,...
5
votes
2answers
2k views

Selenium Framework using a lot of statics

I am writing a Selenium framework that should be really easy for a tester with relatively little Java knowledge to use and write tests for. In order to keep the framework as user friendly as possible, ...
7
votes
1answer
1k views

Scraping scores from flashscore.com

I built a bot with Python to scrap scores on flashscore.com but the data scrap from the site loads into its listbox very slowly. I am curious about the speed of selenium so I made a button that prints ...
5
votes
1answer
457 views

Copy table using Selenium and Python

I have some Python code that copies a table from a website using Selenium,to create a csv, but as I haven't used Selenium much, I have that irksome feeling in the back of my mind that there must be a ...
4
votes
1answer
2k views

Ruby selenium script waiting for an element to disappear

I'm a Java developer, I'm new to Ruby and I'm worried that I'm forcing or not-so-well using the goodness of the Ruby syntax. What do you think about the Exception catching and how to print it in ...
1
vote
1answer
2k views

Trying to catch and throw exceptions if error message window is found

I'm writing a test to validate that while clicking through a series of menu items, an error message pops up, and if it does, then I should throw an exception. Now I wonder: Is it appropriate to use ...
4
votes
2answers
406 views

Improving performance in a Webdriver method

I'm testing an application which is not exactly an e-commerce application but which behaves enough like one that you can think of it as an e-commerce application for the purposes of understanding this ...
4
votes
4answers
1k views

Using if else statements correctly

I have the following code, but I'm looking for a way to make the code read easier. ...
3
votes
1answer
210 views

Selenium Java: errorRecovery

I have the following code to select an image using Selenium, only now I have added an errorRecovery. Is there is a better way to right the code in the ...
2
votes
2answers
2k views

List of search results using Selenium

I have written the following code for looping through WebElements in Selenium. Can someone please provide me with feedback on how to improve my code? ...