Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Go down
Advisor
Advisor
------------------------
------------------------
Posts : 387
Join date : 2009-07-30
Location : India
https://seleniumforum.forumotion.net

New user extension regarding wait and traverse in browser. Empty New user extension regarding wait and traverse in browser.

Fri Sep 18, 2009 11:52 am
hi guys,

There is some more function in new user extension related to the sleep/wait and history. It contain the following functions:


1. Sleep :

This function will wait/sleep the thread for specified amount of time in milliseconds.

command use: sleep | 10000 | | \\wait for 10 sec


2. GoBackOnePage :

This function will simulate back button of browser. This will help user to go one page back.

command use: GoBackOnePage | | |


3. GoForwardOnePage:

This function will simulate forward button in browser after click on back button.This helfule if suer click on back button and want to go the forward page.

command use: GoForwardOnePage| | |

4. RandomNumber :

This function will give you rabdom number of any digit. This function will be
* useful where you want any arbitary number to fill in any field.
*
* @param number of digit random number you want.
*
* How it works:
* 1 = between 0-9 digit
* 11 = between 0-100 digit
* 111 = betwwen 0-1000 digit
* .
* .
* .
* work for around 20 or more ones's.


command use: StoreRandomNumber |111111111111 | variableName| // this will store random number of 12 digit into variable


5. LastTimeVisited:


* This function store the last visited date and time user visted the particular page. It is taking information from Cookies.
* The result will be store into variable.
*
* @param This variable will store the browser name.
* Provide the value in any Target/value options of IDE.
*

command use: StoreLastTimeVisited | | variableName|


Download this user extension from this link:
http://www.mediafire.com/file/eigncigz3u2/BasicFunctions_UserExtension.rar

Enjoy it. New user extension regarding wait and traverse in browser. Icon_bounce New user extension regarding wait and traverse in browser. Icon_twisted New user extension regarding wait and traverse in browser. Icon_eek

Bye
Back to top
Permissions in this forum:
You cannot reply to topics in this forum