selenium-ide

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

≡放荡痞女 提交于 2019-12-21 20:43:50
问题 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?? 回答1: Currently it is not possible to do that! Workaround: Export it as Java JUnit4 Webdriver and just change the imports and

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

梦想与她 提交于 2019-12-21 20:41:23
问题 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?? 回答1: Currently it is not possible to do that! Workaround: Export it as Java JUnit4 Webdriver and just change the imports and

How to export Selenium Test Suite/Case as C#

冷暖自知 提交于 2019-12-21 11:25:36
问题 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? 回答1: 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. 回答2: npm i @seleniumhq/code-export-csharp-commons 来源: https:

How to find XPath of an ExtJS element with dynamic ID

筅森魡賤 提交于 2019-12-21 06:48:32
问题 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*

Running Selenium tests in Jenkins

本秂侑毒 提交于 2019-12-21 05:24:12
问题 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. 回答1: 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

How to use XPath preceding-sibling correctly

蓝咒 提交于 2019-12-20 09:55:26
问题 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=

Selenium IDE: How to continue script on element not found or on error

偶尔善良 提交于 2019-12-19 17:46:31
问题 I need your help. I just want to continue my Selenium IDE script on Firefox even there's an error or element not found. I'm using script with HTML format. 回答1: You have to make an explicit check if an element is present before using this element in the next command (which might cause an error and break an execution of a script). User extension "sideflow" enables conditional jumps inside your code. Here is home page of sideflow extension: https://github.com/darrenderidder/sideflow With

Extract part of a text with selenium IDE and put it into variable

拈花ヽ惹草 提交于 2019-12-19 11:46:10
问题 Could somebody tell me which command should I use to extract only the number(694575) from the text using Selenium Ide and to put it into a variable for further usage. Here is the div with the text: <div class="loginBoxTitle">Edit Exhibition Centre - 694575, Exhibition Center1</div> May be commands like storeText,storeEval should work in this case ,but the part with the pasrsing is a mistery for me. 回答1: I have solution, tricky 1 store | Edit Exhibition Centre - 694575, Exhibition Center1 |

Selenium IDE: Include test script to new test script

只谈情不闲聊 提交于 2019-12-19 09:55:50
问题 We google to find the solution but could not succeed, how do we add already recorded script into new script. 回答1: There is an extension for Selenium-Core: "include", which can add the content of another test to the current test. Here is it's page on OpenQA wiki: http://wiki.openqa.org/display/SEL/include, but unfortunately at the moment it is not accessible. I used to use it in the past but eventually gave it up in a favor of ROLLUP RULES. But if you are looking for a way to reuse a script in

How to use Selenium to store values between tests

天大地大妈咪最大 提交于 2019-12-19 03:36:52
问题 Selenium has the ability to temporarily store data items and then later retrieve them in subsequent tests, e.g. storeText | @id='ctl00_ContentPlaceHolder1_FormView1' | someValue This works well within a single test and also between tests in the same Test Suite when a value needs to be carried forward across test boundaries. Unfortunately it doesn't work between Test Suites (which is a requirement for our application that includes a number of workflows referring to the same object). How can