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 ...
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....
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 ...
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 ...
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>...
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: ...
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 : ...
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 & ...
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.
...
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 ...
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,...
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....
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 ...
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 ...
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....
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....
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 ...
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.
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 ...
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 ...
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 ...
2
votes
Accepted
Extract value of variable in string in Selenium IDE
use storeText to store the text message
echo to verify it
use storeEval to extract the numeric value from text message string
echo it and use it where required
Check example below for a sample ...
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)
...
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/
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 ...
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)
...
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....
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
...
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
selenium-ide × 146selenium-webdriver × 102
automated-testing × 53
java × 16
browser-automation × 11
selenium2 × 8
javascript × 6
manual-testing × 3
c# × 3
xpath × 3
uiautomation × 3
katalon × 3
jmeter × 2
test-automation-framework × 2
chromedriver × 2
quality-assurance × 2
junit × 2
eclipse × 2
data-driven × 2
csv-file × 2
selenium-grid × 2
screenshot × 2
firebug × 2
google-chrome × 2
python × 1