Click here to Skip to main content
15,886,518 members
Everything / Selenium

Selenium

selenium

Great Reads

by Anton Angelov
Use SpecFlow to define automated acceptance tests from business-readable specifications. Learn how to write understandable UI tests within 10 minutes.The post Getting Started with SpecFlow in 10 Minutes appeared first on Automate The Planet.
by Anton Angelov
Find some advanced WebDriver tips and tricks how to use the framework for changing user agent or dealing with SSL certificates.The post 10 Advanced WebDriver Tips and Tricks Part 2 appeared first on Automate The Planet.
by Anton Angelov
Learn how to use the Behaviours Design Pattern to increase the flexibility of your automated tests' API. Create tests the same way you build LEGO.The post Behaviours Design Pattern in Automated Testing appeared first on Automate The Planet.
by Anton Angelov
A detailed overview with examples how to utilize the Decorator Design Pattern in automated tests to create an extendable and decoupled Validators.

Latest Articles

by Yevgeniy Shunevych
An introduction to Atata C#/.NET web UI test automation full-featured framework based on Selenium WebDriver
by Mohammed Faci
Get started with Playwright using VS 2022/C# and NUnit
by Nicolas DESCARTES
How to leverage Selenium for UI tests?
by Shahzeb Hoda
In this article, we will learn how to set up a Selenium WebDriver with Java and run the web automation tests (in series and parallel) on the LambdaTest cloud grid.

All Articles

Sort by Score

Selenium 

24 Oct 2016 by Anton Angelov
Use SpecFlow to define automated acceptance tests from business-readable specifications. Learn how to write understandable UI tests within 10 minutes.The post Getting Started with SpecFlow in 10 Minutes appeared first on Automate The Planet.
20 Feb 2016 by Anton Angelov
Find some advanced WebDriver tips and tricks how to use the framework for changing user agent or dealing with SSL certificates.The post 10 Advanced WebDriver Tips and Tricks Part 2 appeared first on Automate The Planet.
8 May 2016 by Anton Angelov
Learn how to use the Behaviours Design Pattern to increase the flexibility of your automated tests' API. Create tests the same way you build LEGO.The post Behaviours Design Pattern in Automated Testing appeared first on Automate The Planet.
4 Oct 2015 by Anton Angelov
A detailed overview with examples how to utilize the Decorator Design Pattern in automated tests to create an extendable and decoupled Validators.
25 Jun 2018 by Sean Rand
This is an article to help you clean up browser processes during automated Selenium testing.
6 May 2018 by Sam__Khan
Automated Craigslist parsing with Selenium using Node.js
11 Oct 2015 by Anton Angelov
Explains in details how to use the Facade Design Pattern in automation tests so that its class to follow the dependency inversion principle.
28 Feb 2016 by Anton Angelov
Find some advanced WebDriver tips and tricks how to use the framework for dealing with extensions or downloading files.The post 10 Advanced WebDriver Tips and Tricks Part 3 appeared first on Automate The Planet.
15 May 2016 by Anton Angelov
Describes how to improve even further the behaviours design pattern tests through new base classes and usage of Unity IoC container.
11 Sep 2016 by Anton Angelov
Learn how to improve automated testing troubleshooting through the introduction of meaningful exceptions' messages on tests' failure. The second version of the utility will utilize the Ambient Design Pattern.
30 Oct 2016 by Anton Angelov
Learn how to extend the tests’ execution workflow running additional code on various points of the workflow. Configure SpecFlow hooks' execution order.
30 Dec 2017 by MMaley
Using Selenium to automate the mint.com transaction page.
9 Oct 2018 by Toby Steed
A random tip for improving your automation skillset, from Selenium to Powershell
27 Jan 2018 by Anton Angelov
Through the help of interfaces, extension methods and partial classes, 3 page objects variations are presented that lead to more maintainable code.
19 Jun 2016 by Anton Angelov
Build a Hybrid Test Automation Framework. Learn how to create an abstract Selenium WebDriver Implementation of it following SOLID principles.
4 Jul 2016 by Anton Angelov
Build a Hybrid Test Automation Framework. Your next step will be to create a Selenium WebDriver implementation of most used web controls.The post Create Hybrid Test Framework – Selenium Driver Controls appeared first on Automate The Planet.
18 Sep 2016 by Anton Angelov
Learn how to improve automated testing troubleshooting through the introduction of meaningful exceptions' messages on tests' failure. The third version of the utility will utilize the Decorator Design Pattern.
21 Jan 2017 by Anton Angelov
Create item template for generating multiple files page objects consisting of separate files for the element maps, page's logic and the asserts.
2 Jul 2017 by Anton Angelov
Learn how to create .NET Core projects that can run Selenium WebDriver tests. Execute from command line simultaneously MSTest, NUnit and XUnit tests
20 Dec 2019 by Richard Deeming
Debug your code. The most likely cause is that browserName is not equal to either "chrome" or "firefox", so your initializeDriver method is returning null.
15 Apr 2023 by Dave Kreskowiak
It turns out that you CAN get some of the data you need, like the nonviewport height of the browser window and it's position on screen. It helps to go back and re-read the documenation I haven't read in the last decade. ...
19 Feb 2018 by sowmya19
using System;using System.Collections.Generic;using System.Linq;using System.Web;using NUnit.Framework;using TestNUnit; namespace UnitTest{ [TestFixture] public class NUnit { MyTest test=null; [SetUp] public void Initialize() {...
27 May 2016 by cwin90
When trying to use selenium it is important to get a grasp on Xpath. If instead of using the css selector you search by xpath you can try something like this://div[@id='market-summary-body']/div[2]/div[@class='pages']/div/div/table/tbody/trWhich I tested in google chrome will get you a list...
4 Sep 2016 by Anton Angelov
Learn how to improve automated testing troubleshooting through the introduction of meaningful exceptions' messages on tests' failure.
23 Oct 2016 by Dave Kreskowiak
Unit tests should never have a UI because a test that should NEVER have varying input to the code under test. I really question what you think you're doing with an InputBox in this case.
23 Oct 2016 by Harpreet05Kaur
HI,Try to create a simple website and then try your code without testcase.It will work.
17 Jan 2017 by Anton Angelov
Learn how to create Visual Studio item templates. Create faster WebDriver Page Objects through item templates. Download the full set of Pages item templates.
19 Feb 2017 by Anton Angelov
Find out how to improve your Selenium WebDriver tests through the new improved C# 6.0. The new features will help you to create more readable tests.
28 Feb 2017 by Devendra Raju
Run test scripts on Firefox browser using Selenium 3 with GeckoDriver
28 Apr 2017 by Jochen Arndt
You are declaring a static IbiboTest class member: static WebDriver driver; In your setUp() function you are declaring another local instance: WebDriver driver = new ChromeDriver(); As a result, the static class member is still uninitialised and you get a null pointer exception in your...
19 Jul 2017 by Satya Prakash Swain
Java code for this should look like this public void openBrowserInPrivacyMode(boolean isBrowserActive) { System.setProperty("webdriver.ie.driver", "path/to/IEDriverServer_x32.exe"); DesiredCapabilities capabilities = DesiredCapabilities.internetExplorer(); ...
5 Dec 2017 by ZurdoDev
That is a terrible idea for many, many reasons. And it will take a lot of code and will also require changes every time they make a change to their site. I suggest contacting the owner's instead and let them know you are interested in placing orders electronically.
3 Jul 2018 by Richard MacCutchan
Quote: java.io.IOException: Failed to rename C:\Program Files (x86)\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\TestMaven\apache-maven-3.5.3 to C:\Program Files (x86)\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\TestMaven\apache-maven-3.5.3.__rename That location is protected so...
15 Jun 2019 by Toby Steed
Selenium - XPath unleashed
18 Mar 2020 by TheRealSteveJudge
It indeed throws an exception! System.InvalidOperationException: 'invalid argument: cannot parse capability: chromeOptions from invalid argument: unrecognized chrome option: useAutomationExtention The cause is a typo. Just replace ...
21 Jul 2021 by Maciej Los
There's few ways to achieve that. See: java - How to add one day to a date? - Stack Overflow[^] https://mkyong.com/java/java-how-to-add-days-to-current-date/[^]
21 Jul 2021 by Richard MacCutchan
Calendar (Java Platform SE 8 )[^]
24 Aug 2021 by Matthew_Heusser
In this post, you will learn a bit about the various components that make up Selenium WebDriver.
7 Oct 2021 by Member 15335124
Hey, I writes a program for adding sales post to a marketplace. In C #. I wonder how I can add a photo to this sales post. Maybe some path? I say right away that I don't want to use the API yet. I can choose this photo manually, but I want...
18 Sep 2021 by Richard MacCutchan
The format of your call to find_element is incorrect. See 4. Locating Elements — Selenium Python Bindings 2 documentation[^].
1 Oct 2021 by Member 15371871
I'm new to web scraping and I'm using Selenium to open Chrome and click a buy button on a website, but I'm not able to do this. What am I doing wrong? Button code: Compra...
1 Oct 2021 by Member 15371871
The button was inside an iframe, so I need to find the iframe before the button from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.common.by import By from selenium.webdriver.support...
4 Feb 2022 by Richard MacCutchan
The first thing to do in such cases is to Google the error message: DeprecationWarning: executable_path has been deprecated - Google Search[^]. The chances are that someone (or someones) have seen this before and may have hints or even solutions.
4 Mar 2022 by MR. S3eeD_#
When I do a "for" on all the search results in order to enter the first output page and extract data and exit it to enter the next output, it repeats the entry of the first product, so I tried to create a "for" to enter the next output, not the...
4 Mar 2022 by MR. S3eeD_#
I solved the problem by replacing "ttt.Text = webElement2.ToString" with "ttt.Text = webElement2.GetAttribute("aria-label").ToString()"
28 Mar 2022 by OriginalGriff
Two possibilities: 1) It's infected with a virus. I'd assume this, and do a proper check of your whole system. 2) It's a false positive. These do happen, in which case check it with several other virus scanners and if they come up "clean"...
11 Jun 2023 by Andre Oosthuizen
1. Your code might run a redundant Edge Driver copy. Search for any redundant Edge Driver using keywords like "msedgedriver" or "MicrosoftWebDriver" tp locate older versions and delete those. 2. You can specify the actual path by changing -...
1 Sep 2023 by Dave Kreskowiak
It's not working because the email address input box is part of the original page you downloaded. The password box doesn't exist until you enter an email address and click the continue button. The problem is that password box is in a partial...
27 Sep 2023 by OriginalGriff
If you have code from a tutorial, but it doesn't work then the best place to start looking for a solution is where you got the tutorial, =not a random website that has never seen the code before. If nothing else, they need to know there is a...
28 Oct 2023 by Richard MacCutchan
A variable name inside a string has no meaning. In the following line the characters "i+2" are merely part of the string, and will be treated as such. ...
28 Oct 2023 by M Imran Ansari
There are a couple of issues in your code. Firstly, you have an extra dot after the ToString() method call, remove dot from the last. Secondly, the usage of the index i inside the XPath might not work as intended. Here is a revised version of...
9 Nov 2023 by Suhagkumar Vamja
This article discusses running automation tests at scale using Python, primarily focusing on Selenium.
9 Nov 2023 by M Mohammed Afsal
This post will discuss Selenium, how to set it up, and how to use Java to create an automated test script.
9 Nov 2023 by Shahzeb Hoda
In this article, we will learn how to set up a Selenium WebDriver with Java and run the web automation tests (in series and parallel) on the LambdaTest cloud grid.
13 Dec 2023 by Nicolas DESCARTES
How to leverage Selenium for UI tests?
4 Oct 2010 by mariangemarcano
How to quickly get CruiseControl.Net running and driving your selenium test – in 6 steps
18 Dec 2013 by Sanchayeeta
Hi all,I am trying to run two website in parallel using selenium webdriver in c# language. In a test method I am calling two method in parallel manner. Those two method having script to run two different website. Test result is successfully but it didn't run all script, in middle only it...
21 Dec 2013 by Member 10481371
Hi,i'm new to mobile automation testing, please anyone help me how to do the automation using opensource tools like selenium webdriver, monkeytalk etc..Thanks&reards,
23 Dec 2013 by thatraja
Use Google for resources. Check this one for sample, that site has more things related to thatAndroid Mobile Automation Testing with Selenium WebDriver[^]
27 Dec 2013 by PuneethSP
Dear buddies, Can you plz! help me How can we automate silverlight application (websites) using selenium or any other tool plz let me know my head is hanging out ! Thanks ,PuniThanks and regardsPuneeth
28 Dec 2013 by CHill60
Google is your friend.Have a look through these search results[^]
6 Mar 2014 by nixonanand
Dear Frds, I have a big trouble with accessing html element. the element is created after mouseover. How do i access the element.If page load that element is like
6 Mar 2014 by AndrewCharlz
try removing display:none after mouse hoverthis can the problem
12 Mar 2014 by nilesh.d.mankar
Hi Everyone,I am learning Selenium RC. I have one test case. 1. Open google.co.in2. search with word "Selenium"3. Find out how many results are from www.seleniumhq.org are displayed in the first 10 results.Why i need to run this is because my aim is to verify the search engine...
13 Mar 2014 by nixonanand
Hi professionals, i have faced one small trouble.please help me to resolve my problem...how to click element with title attribute.here i below mentioned html code,Here i want select...
18 Mar 2014 by DevAffair
HiI'm trying to click a div in Watir-Webdriver and for some reason couldn't.The website: divChips = browser.element :class => 'chips-area'divChips.element(:css, 'div[chip="5"]').clickand also browser.element(:id, 'roulette').div(:index, 5).clickNothing works.I'd...
19 Mar 2014 by DevAffair
Thanks, for your help. I was told to quit that one and do a different POC.Should be very simple, but again - doesn't work.This should login to a website with Twitter.browser = Watir::Browser.start 'http://www.12mass.com/'browser.link(:class, 'priceLogin').clicksleep...
24 Mar 2014 by Keith Barrow
There are solutions to do this for you: See here[^] for a discussion on these.
23 Apr 2014 by Zhivko Kabaivanov
I am trying to run a selenium C# script and I want to make it use already opened Firefox client.But always opens a new client with anonymous profile.Is there possible to use the current instance of the Firefox client?
22 Jun 2014 by Member 10899321
I need to transform Log In into a By.cssSelector for selenium webdriver java
8 Jul 2014 by Member 10520155
Hello All,I am writing scripts in c#,I have written the code for menu hover and sub menu click just as below, Actions actions = new Actions(driver); IWebElement menuHoverLink = driver.FindElement("id", "idofelement"); ...
5 Aug 2014 by sourabh potnis
I have a wcf service in which i am using Selenium web-driver and which i need to return to workflow service,for that happen serialized web-driver require so what will i need to exactly do for that. Following is the WCF data contract which returns web driver instance object to...
19 Aug 2014 by JDarS
I'm new in automatic testing and Selenium. I have problem with selection in google maps. I open list with word but couldn't find way to select http://prntscr.com/4elckp . Browser is Firefox.
16 Sep 2014 by Mehdi Gholam
Read this : http://stackoverflow.com/questions/1078658/nunit-test-run-order[^]
8 Oct 2014 by Suvabrata Roy
Hi,You can try it : http://www.youtube.com/watch?v=LiJPs6Qw7c8[^]
13 Oct 2014 by darvind4me
I am learning Selenium. Please suggest how can we write data in to existing excel file using JXL.when I use the below code every time its creating new excel file.And I am loosing the data which were existing.WritableWorkbook WWorkbook = Workbook.createWorkbook(new File("C:\\test.xlsx"));
24 Jun 2015 by Praveen Kumar 11
Gives an insight on what automation is all about, how and when it started, where it is now? And why organizations’ are opting for it.
19 Oct 2014 by frostcox
We use selenium... its pretty cool when you get it up and running....Take a look, im sure you'll be impressed..http://www.seleniumhq.org/[^]
11 Nov 2014 by Nimesh Lakhani
Hi, IS it possible to User Selenium library and jar files in RFT, as RFT also uses eclipse for java scripting method.
22 Jan 2015 by Torakami
Hii , I am new on Selenium , I was trying to run one simple selenium class file from my vs 2012 expressI download required selenium we driver and selenium web seriver support classes from nuget pakage manager .But when i run this console application , it just opens up firefox...
12 Feb 2015 by worryNerd
Some of my tests are failing on the build server with "timeout exception" while passing locally.I am unable to conclude the reason of failure.Local machine setup:windows 7 machine ,phantomjs ver 1.9.8build server setup:linux ,phantomjs ver 1.9.2
17 Feb 2015 by Member 11458201
Hi,please some one provide me scripts for parameterizing Page elements and username/password. so that while testing any login page , i should not hard code those data and can fetch those data from XML's. So that if any element id or username/password needs to be changes, i can just change...
17 Jul 2015 by Anshoo Arora
You can also try ReportUnit, which also supports Gallio and MSTest: http://relevantcodes.com/reportunit-report-generator/This is a simple exe file that will convert your xml report into an HTML dashboards (samples): - Folder-level dashboard: ...
17 Feb 2015 by Torakami
Hii , I am good at c# , and wanted to start my career in testing with c# .i tried to find out videos plylist or some websites for toutorials .. but nothing found as a series explanation ..can you please suggest on this .. provide me links which teaches how to use selenium with c# all
17 Feb 2015 by RajeeshMenoth
Hi Torkami,Ref :1 )Selenium Tutorial2 )Selenium - Automating UI Testing for Websites using Visual Studio Unit Tests3 )Data Driven Testing Using Selenium (webdriver) in C#
28 Feb 2015 by EV.Valery
I use in my application, selenium web driver with phantomjs and firefox, for navigate url and get dom of html source and find elements. for phantomjs, i use hidden firefox. and run in start program with one ip and port. this is my code: ShellExecuteA((IntPtr) null, "open", FilePath +...
6 Mar 2015 by Hammad Zahid Ali Zafar
try{ FirefoxProfileManager myProfile = new FirefoxProfileManager(); FirefoxProfile profile = myProfile.GetProfile("Selenium_Profile"); IWebDriver driver = new FirefoxDriver(profile); driver.Navigate().GoToUrl("http://www.google.co.uk"); }catch(Exception e) ...
7 Mar 2015 by Sergey Alexandrovich Kryukov
"Highlight the elements of that Web page" makes no sense, as it would mean "highlight" each and every element on the page. In what sense and why? There is no such a special notion as "highlight". You can just change the style of any element on one or another event. It would really make sense, in...
27 Apr 2015 by Member 11310754
How to automate a silverlight web application using selenium C#( .net) framework? Do we have to make any source code changes to do the automation ?is there a way to identify or get controls/Objects present in silverlight web .
6 May 2015 by Sourabh9890
Hello,I am creating a script of login/logout for a website.How can i take login credentials values from user in runtime with prompt window like in IDE we use prompt and echo commands.By sendkeys we have to save credentails in code.So please help.. any code snippet will helpful.Thanks.
10 May 2015 by sspvs
My current project has mosaic's RSTAR(Reusable Software Testing and Automation Repository) integrated with Selenium automation framework that uses vb.net and the project has been setup in Visual studio 2010. I tried debugging the project by setting breakpoints and executing the script from RSTAR...
13 May 2015 by sspvs
I have a function which is throwing error "object reference not set to an instance of an object" while executing. Code:Public Function InitApp7_AppReview_ThresholdReview_Process(ByVal mcpParameters() As Object) As Object() Dim returnValues() As Object = New Object()...
13 May 2015 by Sergey Alexandrovich Kryukov
You did not show where the exception with the message "Object reference not set to an instance of an object" is thrown. Not to worry. This is one of the very easiest cases to detect and fix. It simply means that some member/variable of some reference type is dereferenced by using and of its...
18 May 2015 by Sergey Alexandrovich Kryukov
This is as simple as this: there is no such property, period. Do the simple thing: open your .resx node in Solution Explorer. It has a child node: VB.NET auto-generated code you use for accessing resources. So, instead of guesswork, asking pointless questions to people who don't have this...
26 May 2015 by Adarsh Kumar GM
Hi All,I am trying to edit a word document (docx),where in my requirement is to replace a text in one paragraph with something else, I have tried to do the below, but somehow I always get an error:String filepath = "path\docx"; String outpath = "path\docx"; ...
27 May 2015 by Prasanna SH
I am automating a website.Parent div tag displays the first 10 child div's and the remaining will be displayed after the scroll. I want to access all the Div's from that parent div.Code I used to scroll the page :...
16 Jun 2015 by Member 11769074
How to send a mail test results from test explorer using visual studio express 2013
30 Jun 2015 by Ibrahim ben Salah
This tip describes how to write Selenium based tests while allowing you to mock/fake parts of the server components.
30 Jun 2015 by Sergey Alexandrovich Kryukov
"…because you need to press enter" is something which was set on purpose, otherwise the behavior would be prohibitively intrusive. As JavaScript is most typically stored on the server side, and executed on the client side, it can be anything. That's why JavaScript implementation in...
15 Jul 2015 by Member 11840657
Hi I am trying to drag an element from outside a frame and drop to inside butdrag and drop is not working as target location is inside an iframe doesany one know any solution or work around for it?ThanksBishnu Das