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
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
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 ...
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
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
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 ...
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>...
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 ...
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....
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 ...
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
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 ...
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
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)
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
selenium-ide × 145selenium-webdriver × 101
automated-testing × 52
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
screenshot × 2
selenium-grid × 2
firebug × 2
google-chrome × 2
python × 1