Click here to Skip to main content
15,893,508 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 Updated

Selenium 

1 Mar 2018 by #realJSOP
Firefox 55 and Selenium IDE | Official Selenium Blog[^]
15 Mar 2018 by #realJSOP
You shouldn't be executing external applications from a web site (security concerns). Either move the necessary code from the console app to the web app, or reference the console app assembly in your web app and use the code as is.
26 May 2021 by 15160877
When I run my java application like this: import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.chrome.ChromeDriver; public class ChromeExample { public static void main(String[] args) { //Setting...
7 Jun 2021 by 15160877
I have used the code WebDriver driver=new ChromeDriver(); It throws the error java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.chrome.driver system property; It's because I didn't set the...
11 Jan 2016 by Abhinav S
This error may not have anything to do with Selenium.TryInternal .Net Framework Data Provider Error 30[^]https://community.oracle.com/thread/3564192?start=0&tstart=0[^]
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"; ...
1 May 2018 by Afzaal Ahmad Zeeshan
That website itself is running and does provide a response, although an error message but it does work. Please check that you are not running this program behind a firewall or a network isolated environment. And yes, the IP address is the underlying IP address for your hostname (the one you are...
31 Aug 2019 by Afzaal Ahmad Zeeshan
Quote: how can i write functional/UI Test cases That is what Selenium is there for, it is not only a bot maker framework. You can write the scripts to test the UI for your application. If you want to unit test the application, then you might want to check other frameworks for Python testing....
8 Feb 2016 by aglom08
@MuhammadUSman1You can use autoIT for this type of handling because autoIT is good and you can handle easily.Just you have to run exe file in selenium.
8 Feb 2016 by aglom08
if(dr.findelement(By.id("ID of Checkbox")).isSelected()){ }else(){ dr.findelement(By.id("ID of Checkbox")).click();}You can try this and this one will works and you can also check whether checkbox is checked or not.
19 May 2017 by Anda Cristea
I have the same problem. Selenium 2 with java can't find some elements. You can try with xpath or other selectors.
4 Jun 2017 by Anda Cristea
Hello, I have a web page that contains the HTML code:
28 May 2017 by Anda Cristea
Which browser do you use and how run your tests(locally or remotely)?
4 Jun 2017 by Anda Cristea
No, I have problems only to id. For other selectors my WebElement exists. I use xpath and I resolved problem.
4 Jun 2017 by Anda Cristea
Here my code: package Test.YhaooMailEdgeRemotely; import static org.junit.Assert.*; import java.util.List; import java.util.concurrent.TimeUnit; import java.util.logging.Level; import org.junit.After; import org.junit.AfterClass; import org.junit.Before; import org.junit.Test; import...
27 Feb 2023 by Andre Oosthuizen
Your imports are incorrect. Rather create a function and make a call to the function. I have created the following and used it in a few projects as ready made in the past. Adjust this to your need, keeping in mind that you might need the function...
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 -...
24 Aug 2023 by Andre Oosthuizen
If I look at the link up to the table row 'Africa - CAF..', it has a span id of 'c88' -
18 Aug 2023 by Andre Oosthuizen
Selenium can be sensitive to different environments, versions, and configurations. You error could be due to a misconfiguration or incorrect setup. As you did not provide full code, I am guessing as to whether you have imported the correct...
18 Oct 2014 by Andreas Gieriet
See http://www.ranorex.com/[^].Useful commercial tool which I use for GUI test automation.CheersAndi
6 Mar 2014 by AndrewCharlz
try removing display:none after mouse hoverthis can the problem
12 Oct 2017 by Andy Feng
This article introduces how to use Selenium WebDriver to simulate browser operations such as load a page, manipulate DOM, extract data and provides ready-to-go sample code in Java and C#.
30 Jun 2016 by Ankit29030
i have 10 divs in a html code..the fourth div is created dynamically.when its created i had selected that by using css selector..now if that 4th div is selected ,then i want to select 7th div based on that div ..how can i do this in selenium?What I have tried:i have 10 divs in a html...
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: ...
18 Feb 2015 by Anton Angelov
Using Selenium WebDriver with Tor C# Code
18 Feb 2015 by Anton Angelov
Most Underrated WebDriver Locator – XPath
9 Oct 2015 by Anton Angelov
Explains in detail how to implement Page Object Pattern- through the usage of the built-in feature in WebDriver and how to create it from scratch.
9 Oct 2015 by Anton Angelov
Explains in details how to create an OOP design of base classes in C# which can improve page object pattern oriented web automation testing framework.
7 Oct 2015 by Anton Angelov
Elaborate further on the Advanced Strategy Design Pattern in automation tests. Usages such as combining multiple strategies in one test or test validations.The post Advanced Strategy Design Pattern in Automation 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.
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.
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.
20 Feb 2016 by Anton Angelov
Find some advanced WebDriver tips and tricks how to use the framework like turn-off the JavaScript, execute tests in a headless browser or use a particular browser's profile.The post 10 Advanced WebDriver Tips and Tricks Part 1 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.
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.
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.
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.
22 May 2016 by Anton Angelov
Learn how to improve the Behaviours Design Pattern trough behaviours definitions and more complex OOP design. The new concept eases the configuration.
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.
26 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.The post Create Hybrid Test Framework – Selenium Driver Implementation appeared first on Automate The Planet.
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.
4 Sep 2016 by Anton Angelov
Learn how to improve automated testing troubleshooting through the introduction of meaningful exceptions' messages on tests' failure.
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.
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.
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.
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.
14 Nov 2016 by Anton Angelov
Learn how to handle more sophisticated scenarios that require multiple parameters. Create data driven tests using scenario outline examples tables.
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.
18 Jan 2017 by Anton Angelov
Learn how to create Visual Studio code snippets. Create element properties trough short keys. Free download a complete suite of test automation snippets.
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.
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.
26 Feb 2017 by Anton Angelov
Learn how to use the brand-new C# 7.0 to make your WebDriver tests even better. Utilise the power of local functions, digit separators and much more.
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
12 Jul 2016 by Aritra Pal
Hi,My Problem is when i click on Graph which are Created though SVG image.The XPath i got is "//*[@id="AUPEBarChart"]/svg/g/g/g[3]/g/g/g/g/g[1]/rect",But If i put this in selenium Webdriver Project it is not locating.What I have tried:I have try to write xpath like this: xpath( ...
11 Apr 2016 by Aseem Sharma
Hi friendsI am trying to execute automated test-cases on Microsoft Edge browser. While executing a test-case, Edge get launched, page get loaded but then it fails to execute javaScript (using IJavaScriptExecutor) and throw below exception:-> error: unknown error (WARNING: The server did...
1 Jun 2021 by Ben Zimmer
So this is the popup that I'm referencing: https://i.stack.imgur.com/w0Abz.png Everything is working completely fine except this one pop up which I can’t bypass. Here is the code I'm using to connect to the url public void...
16 Sep 2014 by Bernhard Hiller
Just make sure that the names order alphabetically, i.e. start with 1_Substract, 2_Divide, 3_Add. In my experience, that simple trick works reliably.
20 Aug 2016 by Bhuvanesh Mohankumar
Task:I have created a Selenium Automation Scripts using the Visual studio and C# language, I have the set of files including Assemblies [DLL and Executable] in the bin folder of the project.How does it work?When I click on the executable it automatically triggers the Firefox and...
26 Jun 2016 by BillWoodruff
First, realize that you are going to try to achieve some form of functional equivalence using two very complex code entities, Selenium, and Phantom. Unless you are a very advanced web-stack developer, I suggest you not start down this road.Second, Phantom has a support group here: [^]....
16 Apr 2016 by BladeLogan
So im trying to collect some data with Selenium using C# and I am fairly new to it, atleast the collecting data part, what im trying to achieve is, when I press a button is collects some data and puts it in a textbox, simple as that, the only thing is when I run my code it doesnt collect...
27 May 2016 by BladeLogan
Basic InformationI have this software that I am developing for my personal use because im using it as a way to learn Selenium (By trial and error and so far I know the basics because I already went through it)What the software doesIt will analyze the top 5 most active stocks from a list...
7 Feb 2018 by BobbyStrain
I have had no success with getting a simple line of code to implement the selenium implicit wait. Can you send me to a reference? The C# version is unworkable. Here is the C# code. using (IWebDriver driver = new FirefoxDriver()) { driver.Manage().Timeouts().ImplicitWait =...
20 Feb 2018 by BobbyStrain
I have a VB windows forms project using Selenium Web Driver in VS 2017 .net 4.6.1. It works fine when using Chrome Driver. But I can't load Firefox. Can someone get me started in how to connect to Firefox? What I have tried: I have found several procedures on the web. None of them work for VB....
25 Jul 2018 by BobbyStrain
This code works with Selenium chrome driver in VB. driver.ExecuteScript("__doPostBack('ctl00$Content$Menu1','1');"); But I can't find what to use with C# and Firefox Driver. This code fails. Can you point me to a resource that might help? The web page is mine and built with Asp.Net. It uses...
28 Dec 2018 by BobbyStrain
I am trying to automate login to cvs.com/account/login with Selenium C#. However, it is a two step process. I can enter the email OK. But I don't know how to click the Continue button as it has no name or ID. I have never seen a button such as this. Thank you for your help. I don't know where...
19 Mar 2022 by BobbyStrain
Until recently I have used Selenium to automate the login to my medical site. But they changed it. I don't understand how to login once I open the page href="https://mycw59.eclinicalweb.com/portal7544/jsp/100mp/login_otp.jsp" I know it is...
13 Sep 2023 by BobbyStrain
I have tried to input my user name at this site using Selenium. The name input works OK. My application ends with name input. I manually click the Continue button. The password entry box should appear. Instead, I notice that something went wrong....
22 Sep 2022 by Bropocalypse Team
I am scraping a website using selenium python to take an appointment. I click on the calendar to chose which date is available, and the available dates are on green. Pic of the calendar: https://i.stack.imgur.com/Fyoii.jpg[^] HTML code of the...
20 Aug 2020 by Cebolozakha
It's complaining with the datasheet, It can't find What I have tried: package Testcases; import Base.Page; import Listeners.ExtentReport; import Pages.Actions.BursaryRegister; import org.testng.annotations.DataProvider; import...
28 Dec 2013 by CHill60
Google is your friend.Have a look through these search results[^]
29 Jul 2020 by CL4Y3R-TR
Hello Dear Helpers my program works as windows form I Have one error help me pls My code private void çek_Click(object sender, EventArgs e) { // Image image = Image.FromFile(@"C:\Users\Sau\Desktop\Dmp-Wr6WwAEQPtp.jpg"); ...
23 Feb 2021 by CL4Y3R-TR
Hello IList labels = driver.FindElements(By.ClassName(textBox1.Text)); textBox2.Text = labels.ToString(); listBox1.Items.Add(labels); as the output of this code in the Listbox1 (Collection) in the...
5 Jun 2023 by CL4Y3R-TR
hello friends, I want to pull the number written in the "data-id" section from a page I have given the code below, but the result is blank.
4 Mar 2022 by clarkj49
I want to print out when a student has a free slot on their timetable what event is taking place at that time. I have scraped both websites and are storing the events in a dictionary. I'm just wondering how do I print it so it tells the student...
16 Jul 2020 by Code Artist
If these data must be from Excel, try ClosedXML to read content from excel. Otherwise, consider to have it in text file where you can just read it as follow: string [] data = File.ReadAllLines();
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...
19 Feb 2018 by Damian Suess
When creating tests with NUnit, they will execute in alphabetical order. For more info, check out the Official NUnit documentation. When creating a test case, they should be independent of each other. In the cases of wanting to place slower tests last, grouping similar, or whatever there are a...
23 Apr 2021 by daniel honarpishe
hello i try too work with selenium on python but chrome driver give me an error my code : from selenium import webdriver driver = webdriver.Chrome(executable_path = 'chromedriver.exe') error : Traceback (most recent call last): File...
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"));
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.
1 Sep 2017 by Dave Kreskowiak
You're really only going to get guesses to this one since you've taken a work machine out of the environment it was design and configured to run in. My first guess, the browsers on the machine were configured to go through a proxy server at work, one which does not exist at home.
28 Mar 2018 by Dave Kreskowiak
I'm sure the terms you're using make perfect sense in your head, but you're the only one who can understand what you're thinking. You have to provide exact definitions of what you mean by those terms. Now, as far as an automation library that supports all the major browsers, Selenium is the...
10 Aug 2020 by Dave Kreskowiak
Yeah, web scraping is definitely doing it the hard way. You would be much better served finding a trading platform that does support code-base trading. There's tons of them out there.
28 May 2021 by Dave Kreskowiak
So what happened when you Googled for "The path to the driver executable must be set by the webdriver.chrome.driver system property"? Always Google for the error message and do a little research before posting a question.
7 Jun 2021 by Dave Kreskowiak
System Properties (The Java™ Tutorials)[^] Wouldn't is make sense the ChromeDriver class can also query the System properties, with System.getProperty and an arbitrarily chosen property name?
2 Mar 2023 by Dave Kreskowiak
You can read up on the Google Translate API here[^].
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. ...
20 Jun 2023 by Dave Kreskowiak
You're getting the error because it think's you're specifying an invalid drive letter. Look at the path you told it to open: C:\KevsTest\Debug\net6.0\blob:https:\www.xxxxxx.co.uk\c7a70bf0-7495-48f8-b989-be0035eb79fd There can only ever be a...
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...
21 Jul 2017 by David_Wimbley
You've provided no code but I image the issue is related to the following * You've got two password textboxes with no id's. This is fine but it makes it extremely hard to target * You've got two password textboxes, 1 for login, 1 for registration. You've indicated in your comments you get the...
7 Feb 2018 by David_Wimbley
I think you may want to look into WebDriverWait class in selenium. I mostly work with selenium in C# so hopefully this code is correct in VB.net (i didn't test it). First i'll start with the C# example var wait = new WebDriverWait(driver, new TimeSpan(0, 0, 45));...
26 Mar 2016 by deelll
Goal:To use Microsofts IIS express when using Selenium. In othe words, execute unit testing in debug mode.Problem:i don't know how to make it working in order to use IIS express by using C# code. in other word, I can't initiate the IIS express with c# code. What am I missing in order to...
15 Mar 2023 by demouser743
Hello all I have a select where it was binded as follows in UI
15 Mar 2023 by demouser743
OK I got the solution after some trail and errors WebElement ddlControl= (WebElement)_driver.FindElement(By.XPath("//select[contains(@name,'controlName")); Helper.JavaScriptClick(_driver, ddlControl); TimeSpan timeToWait = new TimeSpan(0, 0,...
6 Sep 2018 by Desmond McCarter
A utility for generating Selenium based Page Object Pattern classes used in web/mobile test cases.
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...
22 May 2019 by developer63
I got this to work using the ForceCreateProcessApi setting, set to true, and adding the "-private" option to the browser command line arguments. I also had to change the registry key: HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\TabProcGrowth TabProcGrowth is a value under...
28 Feb 2017 by Devendra Raju
Run test scripts on Firefox browser using Selenium 3 with GeckoDriver