Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [webdriver]

WebDriver is an API for controlling web browsers, e.g. for automated tests. There are different WebDriver "language bindings" (i.e. client libraries) and WebDriver "implementations" (i.e. browser extensions that make a browser controllable via the API), so if your question is specific to one of them, make sure to also include the appropriate tag.

1
vote
1answer
56 views

Reusable webdriver framework using SOLID design principles

I am trying to design some classes which I intent to use as a framework. I would like them to be compliant to SOLID design principles. I had a basic structure and then I implemented Strategy design ...
2
votes
1answer
37 views

Program to automate skipping users on a chat website until the username meets certain conditions (v.2.0)

This is a python program that automates skipping through users on a chat website called talkwithstrangers using the Selenium Webdriver and BeautifulSoup modules of Python. The first part uses ...
0
votes
1answer
100 views

Program to automate clicking on the new button on a chat website until the username matches certain conditions

This is a python program that automates skipping through users on a chat website called talkwithstrangers using the Selenium Webdriver and ...
4
votes
0answers
73 views

UI testing for a web application, with variant scenarios

I'm pretty new to software testing and am currently working on a cloud-based web application. Briefly, the application uses: Ext JS as a framework Bryntum's Siesta framework for testing Currently, ...
5
votes
1answer
113 views

Find DivTag element in list and click when innerHTML matches account name

I need to click on a "account" button from a table of buttons. If this "account" button is not present, then I will need to click a different "UseAnotherAccount" button. How I do it at the moment is:...
3
votes
1answer
76 views

Beating the queue

Inspired by this question on CodeReview, and because I'm never able to beat the queue. I'm just too slow I guess.. :( I made a little python utility that reads the queue's information every 30 ...
0
votes
1answer
45 views

Construct URLs out of filenames of zero-byte images and open them in Firefox for re-downloading

It's a problem with FlashGot: it sometimes download zero-byte files. I think it's because I didn't use something like DownThemAll! to limit the number of concurrent downloads, but I wrote this script ...
1
vote
2answers
146 views

Page Object Model class structure in Selenium

I am automating a webform, and this is what I've coded so far. I am curious if you find the code good and readable. But most important to me is to get some feedback for learning purposes. The remove ...
3
votes
3answers
891 views

Fill out webform with Selenium

I am automating a webform on a webpage. I am still learning Selenium on the road. I know a few bad/good practices but a code review is always a good thing to do. What should I improve on in my code? ...
1
vote
0answers
1k views

Navigate a WebBrowser control asynchronously

I wrote a little method to navigate a WebBrowser control asynchronously and returns DocumentResult, yet i wanna know if this is ...
1
vote
1answer
330 views

is it good practice to use relative path in xpath more than once [closed]

I am using Selenium Webdriver-Java to automate a web application. Suppose the html is somewhat like below: ...
3
votes
1answer
64 views

Email finding bot

I'm working on a lead generation bot that helps you find the emails of people you want to reach out to. The bot grabs your spreadsheet from gdrive, logs into several email finding tools, and collect ...
6
votes
2answers
221 views

Safely open a list of links in Firefox

I receive a list of links via http and I want to open them all in a new Firefox (or default browser) window as tabs; that is my script must not touch existing windows. This is the best solution I ...
1
vote
0answers
232 views

Download playlist clips from YouTube

As I'm located in China, using YouTube is a headache for me. I know about youtube-dl, but I just started learning and decided to build something myself. With a bunch of things TBD, it basically does ...
3
votes
1answer
113 views

Recursively checking the css class of an iFrame Element

I am writing some tests in selenium webdriver (on node.js). and have made a custom function to check the css value of an iFrame Element. I'm a coding beginner. The script tests an app where the user ...
1
vote
2answers
108 views

Webdriver-based test that uses configuration parameters from a database [closed]

I am writing automated functional tests for my application. To interact with the application, I use the SQL database to retrieve data and validate data. One of the challenges that I'm facing is that ...
0
votes
2answers
279 views

Using enum to reduce page object method

I had written following page object class which represents user profile page. The profile contains department, teams, email and login labels and corresponding values. Initially I wrote a page object ...
4
votes
1answer
870 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,...
8
votes
2answers
186 views

Error-testing be with cucumber/capybaraweb

I'm working on writing tests for a rails application using cucumber and capybara. I have a scenario for a user editing a post, and making it invalid. The scenario looks like this: ...
1
vote
1answer
1k 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 ...
0
votes
1answer
92 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: ...
5
votes
1answer
243 views

Newest Reddit submissions grabber

My program does exactly what I want it to do and it works well. However, I feel like it's very clunky. I'd like my code to be more efficient. By that I mean, I'd like it to accomplish what it already ...
4
votes
1answer
2k 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 ...
5
votes
2answers
4k 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 ...
3
votes
0answers
21 views

Submitting forms on pages linked from a main page

In this scenario, the main page contains a list of links to the subpages. The requirement is to navigate to each page (if a condition passes) and perform some actions. I have written the loop using ...
4
votes
2answers
234 views

Press any login button on any site

I'm working on a script that will be able to press the login button on any site for an app I'm working on. I have it working (still a few edge cases to work out such as multiple submit buttons and ...
3
votes
1answer
162 views

Mixing Watir::Browser into RSpec

In my previous Watir question I was making a module with session_FF accepting a block. Now I want to make the same but via RSpec. Here is my try: ...
0
votes
1answer
164 views

Improving Watir::Browser for my needs

I want to: use Watir::Browser methods without browser. instance prefix expand abilities of ...
4
votes
1answer
179 views

Opening TV episodes in a web browser

I put this together and it seems to work. 1channel.py -breakingbad 1 The Output (1-10): (1) - Currently 3.80/5 (2) - Currently 3.50/5 (1 opens the link in ...