7

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. You can also whitelist your testing domains for exclusion. Run your tests on a development or staging environment and disable the CAPTCHA in that environment. ...


6

Try the following: Open Console tab in Firebug; Execute window.name or window.document.title.


6

http://www.software-testing-tutorials-automation.com/2013/06/selenium-draganddrop-and.html In Selenium IDE there are 2 main drag and drop commands; (1) dragAndDrop - Locates the target element and drags the element by x pixels horizontally and y pixels vertically. In the IDE this should look like; Command - dragAndDrop<br/> Target - [ locator ...


6

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 problem is using non-script parameters in your selenium-ide commands. Simply replace ${delay}/2 with javascript{storedVars['delay']/2} and so on.. as shown in ...


5

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 MarkerForRelativeUrls) { int Response = 0; String Source = ""; try { Source = Im.getAttribute("src"); if (Source....


5

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>storeAttribute</td> <td>//input[@id='identifier']@maxlength</td> <td>x</td> although I would use css for the identifier, more like: ...


4

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: doubleDelay <body> <table cellpadding="1" cellspacing="1" border="1"> <thead> <tr><td rowspan="1" colspan="3">New Test</td>&...


4

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 & ff versions then it may differs from version to version & Selenium java jars. but my perspective IDE & firebug can work on any versions of ff.


4

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. Chrome extension Firefox extension Introduction video The following languages and frameworks are supported: C# (MSTest and NUnit) Java (TestNG and JUnit) ...


4

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 the new command-line runner to run the .side files: https://www.seleniumhq.org/selenium-ide/docs/en/introduction/command-line-runner/ Alternative: Katalon ...


4

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, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue.setAttribute('style', 'outline: red dashed 5px !important') I can't seem to pass found elements ...


4

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.findElements(By.cssSelector(".card-price-tag")); // Find all price tags elements Integer sumOfPriceTags = Arrays.stream(priceTags) // For each price tag ...


3

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 tell you is that that image file was included in the HTML for the page. You'd need a human to verify that the page looks correct visually.


3

I would argue that the Selenium IDE is not designed for creating more complex sequences as it relies on a number of assumptions about your application that may change and break your tests; Hardcoded IDs, strict structure dependence, and poor abstraction between operation (Click, Type, Click, Type, Click) and motivation (Login as Toby). I would recommend ...


3

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.findElement(By.xpath("//input[starts-with(@type,'text')][contains(@name,'name73652d80')])]")); nameTbox.sendKeys("maheshwagh27");


3

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.selectByVisibleText("India (+91)");


3

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.


2

Selenium IDE can not easily do data-driven testing. There are add-ons which can help; for example Sel Blocks, or datadriven.js. However, I recommend you export your tests to a testing framework such as JUnit; that will make much more functionality available to you - not only data-driven testing, but many other techniques to make your tests more robust than ...


2

I don't think Selenium has this feature, and it wouldn't make sense anyway for many reasons. On the other hand if you are using Java you can use Apache - POI to read in the data from excel in your unit test and then use that to do what you want to selenium testing suite. I just stumbled over this presentation a few minutes ago where someone does just that ...


2

In my browser, the YouTube iframe embeds a Flash player. Ordinarily, Selenium can't talk to embedded components, but this article talks about using the FlashSelenium component to talk to Flash.


2

There is another tool to record page object model. below is the link: http://seleniumrecorder.blogspot.com/


2

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 tests up-front this will safe you a lot of time in the end. Some record and playback tools do support cutting up recordings in pieces and or replacing ...


2

I'm assuming that when you say flow control, you mean conditional statements, loops etc., There are many limitations as to what can be replayed through Selenium IDE. For example handling popups is not possible with IDE because the popup is not a html object and will not have any locator. It is an ActiveX object. Selenium IDE doesn't provide any flow control ...


2

<tr> <td>open</td> <td>/programscourses/currentcourses</td> <td></td> </tr> <tr> <td>waitForElementPresent</td> <td>link=CULT 454</td> <td></td> </tr> This one worked for me, thanks everyone for replies and comments.


2

Selenium IDE does not provide a way to compare images. You can retrieve pixels from an image in Javascript, but only if the image is in a Canvas element. I suspect you can find a command-line program that checks whether two images are identical. (It might be as simple as a byte-by-byte comparison of two files.) Some tools are more sophisticated; see for ...


2

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 before it has finished loading in the DOM. So we need to wait and retry to get the element. You can do that by using Webdriver implicit waits, or maybe implementing ...


2

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 handle native OS dialogs with Selenium IDE, if you can't disable the download dialog, then your only option is dropping the IDE and writing Selenium tests in ...


2

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 which can be downloaded from here. Download this 'CSVRead_Selenium-IDE.js' file from the specified location and add it to your IDE. After that you first need ...


2

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 easiest option to convert them into JMeter test is record and replay. You can just record running Selenium tests with JMeter's Proxy Server Follow instructions ...


2

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) selectLocator - an element locator identifying a drop-down menu optionLocator - an option locator (a label by default) label=labelPattern: matches ...


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