Skip to main content
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

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,052
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

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,775
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.9k
4 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
  • 11.1k
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

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,775
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

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

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
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.6k
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

Selenium IDE with tables or manual test

You can reach same results as with webdriver with Selenium IDE, if you will use Selblocks. This will allow you to use for cycles, conditions, etc... and this will make all that table stuff much easier....
Dee's user avatar
  • 1,356
2 votes
Accepted

Is knowledge in Webdriver needed in order to do automated cross-browser testing with Selenium?

Exporting the tests may take care of ~90% of the task at hand. The work you'll mostly likely need to do is patch ups, such as: Calling upon the different webdrivers (Chrome, Internet Explorer) ...
klmlfl's user avatar
  • 218
2 votes

How do you open a new tab in Selenium IDE?

Example URL: http://www.htmlcodetutorial.com/linking/_A_TARGET_95y98y108y97y110y107y.html Example Element: <a href="newwindow.html" target="_blank">a new window</a> Solution in IDE ...
kirbycope's user avatar
  • 4,090
2 votes
Accepted

How to handle the browser pop-ups in selenium IDE?

Selenium IDE cmd - There are limitations as to what can be replayed through Selenium IDE. It is not possible with IDE because the popup is not a html object and will not have any locator. It is an ...
Narendra Chandratre's user avatar
2 votes

Selenium IDE format for Jenkins integration

Its should be like this, https://stackoverflow.com/questions/1144744/how-do-i-launch-the-selenium-ide-from-the-command-line-with-a-specific-test-case Read the above question and create a bat file to ...
ChathuD's user avatar
  • 2,147
2 votes

Creating negative tests

Yes. I treat positive and negative tests as basic tests. I treat them quite similarly and use them both in my tests. I assert that the things I should see are there and that things I shouldn't see ...
Michael Durrant's user avatar
2 votes

Help with how to convert Selenium IDE HTML to JavaScript for WebDriverIO

The Selenium IDE scripts exported to js script doesn't work seamlessly well for webdriver.io scripts. Any recorder is having its limits. But you can use it to familarize with the webdriver.io ...
Bhavani's user avatar
  • 724
2 votes

Can a Selenium IDE test continue when an assertElementPresent fails?

Replace assertElementPresent with verifyElementPresent. The difference is basically this (taken from Selenium docs). Choosing between “assert” and “verify” comes down to convenience and ...
FDM's user avatar
  • 5,894
2 votes

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

Different scenarios: 1) maxlength attribute In HTML you might have a maxlength attribute on your input tag. In this case you can extract the value with Selenium's GetAttribute("maxlength") or ...
FDM's user avatar
  • 5,894
2 votes

Which version of FF is compatible with Selenium IDE?

Firefox 54 (not 34) is the latest Firefox version supported by the IDE. But the normal installation button is grayed out as for some reason the IDE is marked here as compatible with Firefox up to 34 ...
Tim TY's user avatar
  • 21
2 votes

Selenium IDE Error-"table view is not available with this format" with Firefox 55.0.3 V(64-bit)

The answer is simple. From Firefox version-55 onwards, Selenium IDE will no longer available to work. Refer the latest update on seleniumhq.
mdymek's user avatar
  • 469
2 votes

How can I check if an element exists in an if statement?

You can do this with if/endif of the kantu selenium ide: verifyElementPresent (locator) if | !{!statusOK} Click (...) endIf Script continues... => The "trick" here is to use !statusOK to check in ...
Fabrice Zaks's user avatar

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