selenium-ide

Issue running Selenium IDE test suite using Selenium Standalone server

被刻印的时光 ゝ 提交于 2019-12-06 08:51:01
问题 I am try to follow following references to run the selenium IDE test suites on standalone server . My ultimate purpose is to run headless data-driven tests on ubuntu. Selenium RC with DataDriven Running Tests from command line Selenium Headless tests on Ubuntu So after looking into these tutorials I have setup very simple test suite and trying to run from command line e.g java -jar ~/selenium/selenium-server-standalone-2.39.0.jar -userExtensions user-extensions.js -htmlSuite "*firefox" http:/

Selenium IDE, deleteAllVisibleCookies and ASP.NET_SessionId Cookie - Not Working

社会主义新天地 提交于 2019-12-06 08:19:57
I'm using Selenium IDE (1.3.0 on FF 7.1) to create a test case. The object of the test case is to log in to an ASP.NET application, clear the session cookie (to simulate a timeout or something similar) and then navigate to the default page the logged-in user sees, and verify that they are forwarded to the login page. Pretty simple ... but I'm just diving into Selenium IDE so I'm trying to start simple. It seems like deleteAllVisibleCookies is the correct way to do this: deleteAllVisibleCookies ( ) Calls deleteCookie with recurse=true on all cookies visible to the current page. As noted on the

How to select proper Action for web target in Selenium IDE

流过昼夜 提交于 2019-12-06 08:19:20
I am new to Selenium IDE. As far as I know, when open Selenium IDE, you will notice that the red 'record macro' button is toggled. This means that selenium will attempt to record every action you make inside the browser. This is a problematic way of recording as we implicitly wait for actions to complete before moving on. If I only let Selenium to record every actions without specifying extra actions, many test step will be failed with error message : Element not found. I was trying to add extra actions based on Selenium API, like waitForElementPresent, waitForSearch etc. My question is: How

Selenium - How to count the number of rows in a table?

穿精又带淫゛_ 提交于 2019-12-06 06:48:05
问题 I have a table with "n" number of rows. I need to count them, how to do? Example:- My table looks like the below entry. Type Balance Date received Date returned Payment method Amount General Default 10/01/2013 08:53:20 Cash $ 10.00 HTML of my table looks like this. <th> is table title row and <td> are the entries done by the user. Everytime the user add the new entry, the count will increase and display a message "3 found for account 6478 ". where 3 is no of rows in the table. <fieldset>

Selenium IDE - Can I select a row based on column content to verify other columns?

只愿长相守 提交于 2019-12-06 05:34:43
问题 I am testing an application using Selenium IDE. There is a table with unstable row ordering - which means the elements I need to verify are in different rows on each test run. I'd like to use text known to be in the first column to find the row; and then verify the other columns in the same row. The test looks like this: store || //form/table || tableXpath store || 3 || initialsRow verifyTable || ${tableXpath}.${initialsRow}.0 || Initials verifyTable || ${tableXpath}.${initialsRow}.1 || MJ

Which selenium IDE command should I use to execute a javascript statement

瘦欲@ 提交于 2019-12-06 05:29:47
问题 I am trying to set a dropdown value using javascript in selenium IDE, but not able to figure out which selenium command to use. 回答1: Selenium IDE command to execute a javascript statement: runScript with the javascript statement as argument. Example (can be run on Google startpage): <tr> <td>runScript</td> <td>document.getElementById('searchText').setAttribute("value", "hello");</td> <td></td> </tr> 回答2: You can run a script (like above) and set the option you want to "selected". You can also

How can I customise the Selenium IDE export?

隐身守侯 提交于 2019-12-06 04:05:41
Within Selenium IDE for Firefox, under Options -> C# / NUnit / Webdriver, there is a button 'Source' to view the conversion formatter. It is displayed in read-only format. Is it possible to get access to this file in order to customise the export process? Sorry if this seems like a trivial question, I've found plenty of people complaining about not being able to perform various tasks online and a few responses that indicate that custom export is supported, but I can't seem to find a way to access the file to perform the work. Thanks I think I found a solution to this problem. Though you can't

Selenium - verify the list of suggestions is displayed

时光毁灭记忆、已成空白 提交于 2019-12-06 00:30:53
What command is used to verify the list of suggestions is displayed when typing a letter in text field (example: a)? And how to verify the items in the list start with the letter you typed? I believe you're talking about something like Google Suggests with autocomplete. Your test would look something like this Load the page Enter the value using typeAndWait to let the Ajax call happen Compare the result to a text blob The calls would be like this open(/) typeAndWait(textId,a) verifyText(css=div#suggestion:first-child,a*) Hope that helps 来源: https://stackoverflow.com/questions/3640677/selenium

click / clickAndWait not working

断了今生、忘了曾经 提交于 2019-12-05 22:45:13
问题 A recorded test script includes a google search. After clicking on "Google Search", the next action was to click on a link in the test results, however during playback this happens before the browser has loaded the results, so the solution seemed to be to add a delay after the search. I tried it two ways : changing "click" to "clickAndWait" with a value of 1000. This works, badly. The value of 1000 does not change the default value of 30000ms, and the playback takes 30s to complete the step.

Conditional check in Selenium IDE

左心房为你撑大大i 提交于 2019-12-05 19:51:49
I want to check whether a possibly mandatory field is filled in using selenium. I would very much prefer to do this using the IDE rather than exporting to code. To be more specific, I want to make sure that a post code field is filled in if the value of the country drop down list is 'United Kingdom'. The post code field can be left blank if the drop down list is set to anything else. If the consensus is that I have to export and do the test in code, then I will, but I would be a lot happier if I could sort this out just through the IDE. Unfortunately, Selenium-IDE does not offer any flow