The old Selenium ide, pre chrome

מתוך R63
קפיצה אל: ניווט, חיפוש

תוכן עניינים

Selenium on chrome

קישורים שימושיים

DEBUG*


פקודות

http://www.nickbartlett.com/wordpress/must-know-commands-for-selenium-ide/

Manual input from user while running selenium IDE script

http://stackoverflow.com/questions/8921929/manual-input-from-user-while-running-selenium-ide-script <tr> <td>storeEval</td> <td>prompt("Please enter your FirstName")</td> <td>firstName</td> </tr>

flow Control

flowControl commands

תוסף JS ל- GOTO ועוד אפשר להוסיף תוסף רק אחרי שיש קוד כלשהוא

שימוש במשתנים

http://seleniumhq.org/docs/02_selenium_ide.html#commonly-used-selenium-commands

The “AndWait” Commands

The difference between a command and its AndWait alternative is that the regular command (e.g. click) will do the action and continue with the following command as fast as it can, while the AndWait alternative (e.g. clickAndWait) tells Selenium to wait for the page to load after the action has been done.

The AndWait alternative is always used when the action causes the browser to navigate to another page or reload the present one.

Be aware, if you use an AndWait command for an action that does not trigger a navigation/refresh, your test will fail. This happens because Selenium will reach the AndWait‘s timeout without seeing any navigation or refresh being made, causing Selenium to raise a timeout exception.

pause 5000

This type of error may indicate a timing problem, i.e., the element specified by a locator in your command wasn’t fully loaded when the command was executed. Try putting a pause 5000 before the command to determine whether the problem is indeed related to timing. If so, investigate using an appropriate waitFor* or *AndWait command before the failing command.

דוגמאות Selenium

video tutorial

5/10

testrunner

כבר לא מעניין

TestRunner Mode: Allows you to run the test case in a browser loaded with the Selenium-Core TestRunner. The TestRunner is not commonly used now and is likely to be deprecated. This button is for evaluating test cases for backwards compatibility with the TestRunner. Most users will probably not need this button


דוגמאות http://codesnipers.com/?q=testing-with-selenium-testrunner

דוגמאות של מפות גוגל http://gmaps-api-issues.googlecode.com/svn/trunk/selenium/core/TestRunner.html?test=../tests/examples_stable_suite.html


selenum


כלים אישיים