selenium-ide

How to generate Java source code from Selenium IDE (IDE code is in HTML extension)

ⅰ亾dé卋堺 提交于 2019-12-03 08:29:15
I am using Selenium IDE (a Firefox plugin) for doing testing. I am unable to see java code when I start recording something. What I see always is HTML. Any idea what can be the best way to get the java source code. Please any one can help on this. Thanks a lot. user861594 Below are steps: Options->Format -> select format of your choice eg. junit/testng/isfw Go to Source tab . To export test case in specific format use File->Export Test Case As -> select format One of the useful feature of Selenium IDE is, it provide option to set clipboard format so that you can copy commands form table view

Selenium how to select an object by class

∥☆過路亽.° 提交于 2019-12-03 05:08:15
I have a web page with a form and has a field that uses the jquery autocomplete function. This is how the HTML renders after a user name returns 1 or more results. However I cannot figure out how to make Selenium "click" a result. Can I do a jQuery type of selector. e.g. $(".ul.ui-autocomplete li:first a") Use XPath selector in Selenium: xpath=//li[contains(@class, 'ui-autocomplete')]/li[1]/a not checked, might require some corrections. in response to "Can I do a jQuery type of selector," jQuery uses CSS selectors. Selenium can also use CSS selectors; just prefix the selector with "css=". so:

Export test as python from Selenium IDE

北慕城南 提交于 2019-12-03 01:11:46
I made several tests in Selenium IDE and saved it as a test suite in the HTML format which works fine for importing back into selenium IDE. Now however I would like to expand these tests using python and when I click export test suite and choose python I get this error Suite export not implemented for the chrome://selenium-ide/content/formats/python-rc formatter How can I enable this option in selenium IDE? Note I also have found an additional plugin for Firefox that allows batch conversion of tests but still does not allow export of the entire test suite as one file. I realize I could combine

Selenium-IDE: How to simulate non-printable keys (ENTER, ESC, Backspace)?

时间秒杀一切 提交于 2019-12-02 22:25:30
What is the exact HTML code to simulate ENTER, ESC, BACKSPACE and DOWN in Selenium IDE 1.3.0? typeKeys didn't work nor did this: <tr> <td>keyDown</td> <td>id=zc_0_4_3-real</td> <td>10</td> </tr> <tr> <td>keyUp</td> <td>id=zc_0_4_3-real</td> <td>10</td> </tr> <tr> <td>keyPress</td> <td>id=zc_0_4_3-real</td> <td>10</td> </tr> wentbackward For example to submit a form by pressing enter, the only one I can figure out is: Command: keyPressAndWait Target: id=q [depends on your form of course] Value: \\13 [for enter - any ascii value can go here] So it looks like this: <tr> <td>keyPressAndWait</td>

How to use XPath preceding-sibling correctly

自古美人都是妖i 提交于 2019-12-02 20:06:08
I am writing tests for my site using Selenium IDE and I am having trouble with having selenium click on a button using preceding-sibling <td> <div class="btn-group"> <button class="btn btn btn-danger block" title="Warning, Delete" name="delete" type="button"> <button class="btn btn btn-default block" title="View History" name="history" type="button"> <button class="btn btn btn-default block" title="View Settings" name="settings" type="button"> <button class="btn btn btn-default block" name="device" type="button"> <span class="glyphicon glyphicon-pencil"/> Arcade Reader </button> </div> </td>

RobotFramework: Keyword 'Selenium2Library.Input Text' Error Keyword 'Input Username' expected 1 arguments, got 0

主宰稳场 提交于 2019-12-02 14:01:38
问题 Code: Input Username [Arguments] ${username} Input Text login_username_id ${username} Error:- Keyword 'Input Username' expected 1 arguments, got 0 May i know why am i getting this error? 回答1: Pass in self as the first argument in your method. Something like: def input_username(self, arg1): 回答2: The error message is telling you exactly what the problem is: your keyword Input Username expects exactly one argument, but the place where you are calling it is only providing one argument. 来源: https:

flex monkium integration with selenium ide

ぐ巨炮叔叔 提交于 2019-12-02 13:14:52
问题 I am newbie for flex automation , is there any possible way to integrate flex monkium wtih selenium ide to record particular test cases as we can do for any web application in selenium ide 回答1: You can also use Sikuli for automation of flash Please check this link for Flash automation Tutorial to start with basic Turtorial Sikuli API for Java provides image-based GUI automation functionalities to Java programmers. It is created and will be actively maintained bySikuli Lab. The effort of

Is it possible to do this Selenium Firefox IDE?

不问归期 提交于 2019-12-02 09:13:35
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 make selenium do all this ? Do I have to create a script for each state or there is a for loop ? Can

how to select an option from an autocomplete field in selenium ide

故事扮演 提交于 2019-12-02 07:23:36
问题 i am testing a form of post a feed. where user can notify some existing user. while i am enter any data or character in the field its id is changes. eg. if at the initial stage verifyValue id=token-input-auto_complete enter a data in the field ani verifyValue id=token-input-auto_complete ani after enter the data in the field it shows only the character in the field but not shows any dropdown options 回答1: Do you mean a jQuery autocomplete? Or some other type of autocomplete (please name it if

flex monkium integration with selenium ide

人盡茶涼 提交于 2019-12-02 04:44:14
I am newbie for flex automation , is there any possible way to integrate flex monkium wtih selenium ide to record particular test cases as we can do for any web application in selenium ide You can also use Sikuli for automation of flash Please check this link for Flash automation Tutorial to start with basic Turtorial Sikuli API for Java provides image-based GUI automation functionalities to Java programmers. It is created and will be actively maintained bySikuli Lab. The effort of making this API is a response to the desire of many Sikuli users to use Sikuli Script's functionalities directly