selenium-ide

Conditional Post-Build step in Jenkins (Ideally without plugins)

北城以北 提交于 2019-12-04 00:11:40
If I understand correctly I can make a build step conditional using this plugin: https://wiki.jenkins-ci.org/display/JENKINS/Conditional+BuildStep+Plugin First does this plugin work the Post-Build steps? Second is there a way to make Post-Build steps conditional without a plugin? The scenario I have is I am supporting both WebDriver and Selenium IDE tests with one universal Jenkins Job setup. If they have checked in either type of test it runs them. I then want it to conditionally look if any results files show up and if so then do the publish results Post-Build step, otherwise skip that step.

How to find XPath of an ExtJS element with dynamic ID

无人久伴 提交于 2019-12-03 22:48:40
All the elements in the application which i am testing have dynanic ID's . The test always passes when i replay it without refreshing the page but as soon as i refresh the page, The Test Fails because Id's of all the elements changes randomly and selenium cannot match the recorded id's with the new ones . I tried to use Xpath-position, It works for some objects but in case of Dropdown list and Buttons , it dosent work! Can anyone please tell me how to find the Xpath (Meathods in JAVA or S* elence *) of an object OR How to create a new Locator Finder for Dropdown list and Buttons I can show the

Manual input from user while running selenium IDE script

独自空忆成欢 提交于 2019-12-03 17:26:22
问题 can user is able to give manual input while running selenium IDE script? For ex. If there is name field then can we open input box everytime script runs so that user can give his input for name field? Let me know whether it is possible or not.. If yes then please suggest me a solution. Thanks in advance 回答1: You can use the following script to invoke a javascript prompt in order to get the value <tr> <td>storeEval</td> <td>prompt("Please enter your FirstName")</td> <td>firstName</td> </tr>

Running Selenium tests in Jenkins

感情迁移 提交于 2019-12-03 16:38:10
I have recorded some simple selenium tests by Selenium IDE. Now I want to run those tests in Jenkins. Which plugin to Jenkins do I need to do that? And how to run the tests step by step? Help is appreciated. Nguyen Thi Huong you can use recorded selenium IDE script and selenium-server.jar file to run it from Jenkins Here is steps: Go to SeleniumHQ page and download Selenium Server file Eg: selenium-server-standalone-2.33.0.jar Repair html test suite Use Selenium IDE to record then save as html test case and test suite then put them in a same folder eg: TestCase.html, TestSuite.html In jenkins

Receiving org.openqa.selenium.WebDriverException: Cannot find firefox binary in PATH running tests in Selenium IDE with Webdriver playback

寵の児 提交于 2019-12-03 15:33:50
I keep on getting the following errors when I attempt to run tests in Selenium IDE with Webdriver playback. Caused by: org.openqa.selenium.WebDriverException: Cannot find firefox binary in PATH. Make sure firefox is installed. OS appears to be: VISTA Build info: version: ’2.32.0′, revision: ’6c40c18′, time: ’2013-04-09 17:22:56′ System info: os.name: ‘Windows 7′, os.arch: ‘amd64′, os.version: ’6.1′, java.version: ’1.6.0_39′ Driver info: driver.version: FirefoxDriver at org.openqa.selenium.firefox.internal.Executable.(Executable.java:72) at org.openqa.selenium.firefox.FirefoxBinary.

Selenium how to select an object by class

限于喜欢 提交于 2019-12-03 15:33:50
问题 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") 回答1: Use XPath selector in Selenium: xpath=//li[contains(@class, 'ui-autocomplete')]/li[1]/a not checked, might require some corrections. 回答2: in response to "Can I do a jQuery type of

How can I read Variables from data pool with Selenium IDE?

做~自己de王妃 提交于 2019-12-03 15:15:47
I am using Selenium IDE to test a web based HR/SW system. There is a screen that used to enter vacation for employees. I am having nearly 3000 employee. I built a test case that enter vacations for one employee using variables. How can I repeat the test case for all 3000 employees without creating the test case 3000 times. It will take an impossible effort to do that. Note: Each employee is having different vacation data (Type, start date, End date) Is there any way that I can use a file (Excel,....) that variable can use to read its data from? Is there any solution for my case??? I will be

Selenium IDE - Set default speed to slow

巧了我就是萌 提交于 2019-12-03 11:42:38
Everytime when I run Selenium IDE the speed control is set to "fast" It is possible to set the speed control per default to "slow"? Put this command in the beginning of your script: Command: setSpeed Target: 3000 The IDE has a slow speed and a fast speed. However, this is more precise so you can control the delay per command in milliseconds. This example will have it wait 3 seconds per command. feklar To expand on MacGyver's response, you can put the setSpeed anywhere in your tests, not just at the beginning. For example, you can use setSpeed = 0 when checking for static elements on a page,

Export test as python from Selenium IDE

只愿长相守 提交于 2019-12-03 09:32:21
问题 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

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

浪尽此生 提交于 2019-12-03 08:37:42
问题 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> 回答1: 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