selenium-ide

Is it possible to export Selenium IDE test cases as Java/ TestNG/ WebDriver?

99封情书 提交于 2019-12-04 15:51:18
In Selenium IDE 1.9.0 there are options to export testcases as Java / JUnit4 / Webdriver and Java / TestNG / Remote Control (along with many more options). I want to know is there any way to export the test case as Java / TestNG /Webdriver? If not is there any workaround for the same? Or can we export it as JUnit and change it to TestNG in some simple steps?? Currently it is not possible to do that! Workaround: Export it as Java JUnit4 Webdriver and just change the imports and annotations. Thats all you need to do Yes, it is not possible to export the Selenese scripts from IDE to Java/ TestNG/

Selenium IDE and xpath - find text / row in table and select radio box

懵懂的女人 提交于 2019-12-04 15:44:04
I've been using Selenium IDE and getting some good results. I've done a lot of reading about following-sibling and preceding-sibling but I can't locate the right radio button. Essentially I want to find the row in a table with the word 'testing' and then click the radio button in the cell. So far I can find the input button //input[@type='radio'] and find the text testing //a[contains(text(),'testing')] I've been trying to use this in the ide check | //input[@type='radio']/following-sibling::td[1]/a[contains(text(),'testing')] but I get the error [error] locator not found: //input[@type='radio

Typing in a IFrame with Selenium IDE

删除回忆录丶 提交于 2019-12-04 14:54:13
I'd like to type something in a IFrame with Selenium IDE but I don't know how to do this. Thanks a lot! You have to select the iframe and then type selenium.selectFrame("css=iframe.widget[<a_css_identifier>]"); selenium.type(<your_object_or_text_box>, <typed_content>); The statements are in java, but you should be able to find selectFrame and type in the IDE. You can use the Selenium IDE command 'selectFrame' to focus within an iframe. Use the Target field to enter the iframe id. Try <tr> <td>selectFrame</td> <td>edit</td> <td></td> </tr> <tr> <td>type</td> <td>xpath=//html/body</td> <td>my

Issue running Selenium IDE test suite using Selenium Standalone server

倖福魔咒の 提交于 2019-12-04 14:48:14
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://google.com ./suite.html ./out/firefox-results.html Output org.openqa.grid.selenium.GridLauncher main

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

孤人 提交于 2019-12-04 13:00:46
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> <table id="listBalances" class="listTable" width="100%"> <thead> <tr> <th>Type</th> <th>Balance</th> <th

How to create nested test suites for Selenium IDE?

烂漫一生 提交于 2019-12-04 08:33:04
问题 I need to create a nested test suite in Selenium that will run in the Selenium IDE or the Selenium TestRunner. This is basically the structure that I'm trying to achieve: MasterTestSuite.html - ComponentTestSuite.html - TestCase1.html - TestCase2.html - OtherComponentTestSuite.html - TestCase3.html - TestCase4.html I NEED to be able to achieve something equivalent to this. I have started to try an Include extension, which allows me to include the contents of another test case, but I am

Is it possible to do this Selenium Firefox IDE?

时光毁灭记忆、已成空白 提交于 2019-12-04 06:09:45
问题 This is a follow up to this question - Want to create a form filler - is java, jsp, html enough?. I am repeatedly filling a form on a website (Eg. private dentist reservation). 1 - For loop. For each iteration, all data is same except the value of a "dropdown box - state". eg. "Text box - name", "text box - age" remain the same in each iteration. But, the state drop down changes to NY, TX, CA in an iteration. 2 - Perform an action (send mail) if certain text occurs in the final page. How do I

How to export Selenium Test Suite/Case as C#

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-04 05:26:57
In the older version of the Selenium IDE you used to be able to export a test case as different languages, however, I am not seeing that option on the newer IDE... Is it possible to export the test suite/case as C# in the newer IDE? The closest I have found is the option to export to Java. https://www.seleniumhq.org/selenium-ide/docs/en/introduction/code-export/ The important bits require minimal changes to use in a C# project. 来源: https://stackoverflow.com/questions/50052777/how-to-export-selenium-test-suite-case-as-c-sharp

click / clickAndWait not working

我与影子孤独终老i 提交于 2019-12-04 05:01:26
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. calling "setTimeout" before the click with a value of 1000. This has no effect on the timeout behavior

What are the inner workings of the Selenium waitFor mechanism?

五迷三道 提交于 2019-12-04 03:31:58
I am trying to customize the behavior of Selenium's click command, (via user-extentions.js), by intercepting calls to doClick(locator). Basically I need to delay click actions whenever our application's "busy indicator" is being displayed. (Now the standard answer for this kind of thing is to insert a waitFor into the script for those situations. Indeed, we currently have zillions of them throughout our scripts. I'm trying to eliminate those.) Detecting the page element is the trivial part. The tricky part is getting the script to actually wait. My promising looking, but failed attempt looks