As of May 31, 2023, we have updated our Code of Conduct.
7 votes

How to check is image is loaded or not in selenium?

I'd go with a two way approach, first make sure the Image can even be loaded, for this you could just use an HttpURLConnection. This could look like this: Boolean checkLinks(WebElement Im, String ...
Daniel's user avatar
  • 968
7 votes
Accepted

How to handle a ReCAPTCHA picture?

There is not any way to automate captcha submission. Actually, that's the reason captcha is used for. All you can do are: ReCAPTCHA's documentation provides a set of keys that you can use for testing....
Shahid's user avatar
  • 624
6 votes
Accepted

Multiple the variable passed in pause command in Selenium IDE

Selenium docs mention that Javascript can be used in Selenium IDE in two ways. With script-parameters (storeEval etc) and with non-script parameters (direct javascript). The easier solution to your ...
TestingWithArif's user avatar
6 votes
Accepted

testing with loops

Whatever the reason - if you check for 400 things in a loop you can only find 1 defect at a time because your test will throw an assertion error. I suggest using something like DataProvider from ...
Moro's user avatar
  • 1,047
5 votes

How to get max character count for input fields with selenium webdriver

You can find the field and get the maxlength attribute max_length=find('input#id').getAttribute('maxlength') In the IDE I think it would be something like this to store it in 'x': <td>...
Michael Durrant's user avatar
4 votes

Multiple the variable passed in pause command in Selenium IDE

You can make use of storeEval command in Selenium IDE. Using it you can add, divide, multiply any variable with desired value and then use it. Command: storeEval Target: storedVars['delay']*2 Value: ...
AMfromNBS's user avatar
4 votes

How to select li element in selenium

Use the below code: WebElement countryUL= driver.findElement(By.xpath("//[@id='country_id']/ul")); List<WebElement> countriesList=countryUL.findElements(By.tagName("li")); for (WebElement li : ...
Nikunj Aggarwal's user avatar
4 votes

Which Firefox version is more compatible with Selenium IDE and Firebug?

Selenium IDE & firebug can work on any versions (mostly above v-31.0) of Mozilla FF. both are Firefox plugins so they don't affect on any versions. If you are asking about Selenium WebDriver & ...
Bharat Mane's user avatar
  • 6,785
4 votes

How to export test cases in the latest selenium IDE

This feature is not available in Selenium IDE new version. Try Katalon Recorder if you really need that function. Among Selenium-IDE alike tools, at this moment it is the only one with code export. ...
Hai Minh Nguyen's user avatar
4 votes

How to change the Selenium IDE file extension (.side file into java file) while saving the project

The "NEW" Selenium IDE does not support exports to other languages currently, it is still work in progress, see the github issue: https://github.com/SeleniumHQ/selenium-ide/issues/592 You could use ...
Niels van Reijmersdal's user avatar
4 votes

Method and way to highlight the validation message in the web page by using Selenium IDE

You can use the "run script" command with JavaScript code in the target field. Here some example code to highlight the first h1 element on a page with XPath: document.evaluate('//h1', document, null,...
Niels van Reijmersdal's user avatar
4 votes

How I can calculate the sum of items that are stored in main Id and then sub_id in that main Id

Comments explain the flow WebElement baseCard = driver.findElement(By.id("00automation")); // Finding the base of the DOM tree where the price tag will be List<WebElement> priceTags = baseCard....
João Farias's user avatar
  • 10.3k
4 votes

Merge Selenium projects

Selenium IDE has no version control integration, at least for now. All the test info is written in a .side file (unless you are using code export to another language). If you've set up git ...
Mate Mrše's user avatar
  • 4,119
3 votes

xpath - element is not located even when I construct the xpath

Here is change that I have made in your code- are they 2 different textboxes or single one? If you add screenshot of your textboxes it will clear to all of us- WebElement nameTbox= driver....
Sophia's user avatar
  • 367
3 votes

How to select li element in selenium

It's simple, just you have to use Select method in WebDriver. WebElement countrydropdown=driver.findElement(By.id("country_id")); Select country=new Select(countrydropdown); country....
Bharat Mane's user avatar
  • 6,785
3 votes

How do I run Selenium IDE recorded tests consistently against several environments?

The simplest approach is to use the 'Base URL' in IDE. http://www.seleniumhq.org/docs/02_selenium_ide.jsp#using-base-url-to-run-test-cases-in-different-domains The Base URL field at the top of ...
Janaaaa's user avatar
  • 329
3 votes

Calling a test suite from another Test Suite/Test Case

You could just split the calling suite into pre and post steps. Then your runner could run Pre Suite The Test Suite you wanted to call Post Suite.
Amias's user avatar
  • 1,202
3 votes

If/else with test on checkbox in SELENIUM IDE

A simple if statement works like given above, you could try yourself. If you change the target value to true for if command then the output will be Passed and if you keep it as false, the output will ...
PDHide's user avatar
  • 10.9k
3 votes
Accepted

Using Selenium IDE tool can we check the font color and font size or CSS values of the web element?

You can try execute script function. See my example below: Here is test output: Inside getComputedStype you need to use JS way to look up the element you need and then invoke getPropertyValue with ...
Alexey R.'s user avatar
  • 11.5k
2 votes

Test recording with Selenium IDE vs manual programming test framework

There is another tool to record page object model. below is the link: http://seleniumrecorder.blogspot.com/
varinder kumar's user avatar
2 votes
Accepted

Test recording with Selenium IDE vs manual programming test framework

I would always vote for hand-coding automated test over the use of Record and Playback. With programming test-cases its much easier to keep the tests DRY and if you think about maintainability of the ...
Niels van Reijmersdal's user avatar
2 votes
Accepted

Selenium doesn't match the text present

<tr> <td>open</td> <td>/programscourses/currentcourses</td> <td></td> </tr> <tr> <td>waitForElementPresent</td> <td>...
Tolga Ozses's user avatar
2 votes

How to check is image is loaded or not in selenium?

Webdriver doesn't have eyes; therefore, there's a hard limit to the amount of GUI validation it can do. It can't tell you if the image that was served looks correct, or if it is broken. What it can ...
Yamikuronue's user avatar
  • 3,372
2 votes

Tools for automating UI testing for web

Could you please specific your kind of test? You want to do regression testing or ... If selenium web-driver is taken a long time, I think you should consider to : 1- iMacro: https://addons.mozilla....
scorpion's user avatar
  • 330
2 votes

Unhandled exception in Selenium Webdriver with C#

You could try a couple of things.. Does it work using a different selector, e.g: By.XPath("//a[text()='My Timesheet']") ? If that doesn't work either, selenium may be trying to get the element ...
chrisc's user avatar
  • 271
2 votes

Can I copy data from a CSV file and use it in a website using only Selenium IDE

Yes, you can do it using Selenium IDE. You can read data from CSV files and use it to fill forms/fields in your application using Selenium IDE. For this you will need to add extension to Selenium IDE ...
Dhiman's user avatar
  • 4,580
2 votes

Handle Firefox native dialog windows with Selenium IDE

I think you can change the settings of Firefox so that it just download without showing a download file dialog. https://support.mozilla.org/en-US/kb/change-firefox-behavior-when-open-file You cannot ...
Niels van Reijmersdal's user avatar
2 votes

Testing using Selenium

Selenium WebDriver uses JSONWire protocol which is cross-platform. It provides different client libraries i.e. for C#, Java, Python, Ruby, JavaScript. Once you have tests developed in C# - the ...
Dmitri T's user avatar
  • 13.1k
2 votes

SELENIUM IDE - Selecting DROP DOWN using Array(parameterization)

There is no HTML code you are using and therefore we cannot evaluate what is going wrong here, but suspect this: 1) Read select command documentation: select(selectLocator, optionLocator) ...
Dee's user avatar
  • 1,356

Only top scored, non community-wiki answers of a minimum length are eligible