Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» Geting issues in identifying the elsements in webdriver
Fri Feb 17, 2017 4:41 pm by janbaskt

» WebDriver - why not to use a singlton for it?
Fri Feb 17, 2017 4:40 pm by janbaskt

» WebDriver session when using testng annotation to invoke driver instance
Fri Feb 17, 2017 4:39 pm by janbaskt

» Selenium fails to launch Chrome
Fri Feb 17, 2017 4:39 pm by janbaskt

» why do i get this error
Fri Feb 17, 2017 4:38 pm by janbaskt

» Selenium Tutorial
Thu Feb 16, 2017 5:21 pm by Rahul

» When to use Selenium IDE, RC and WebDriver
Mon Feb 13, 2017 2:35 pm by azharuddin

» How to integrate selenium with ZAPI-Zephyr
Sat Feb 11, 2017 2:25 am by gseera002c

» Selenium Webdriver
Sat Feb 04, 2017 6:47 pm by soumyamishrav@gmail.com

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

New user extension regarding wait and traverse in browser.

View previous topic View next topic Go down

New user extension regarding wait and traverse in browser.

Post by Adviser on 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.

Bye

Adviser
------------------------
------------------------

Posts : 379
Join date : 2009-07-30
Location : India

http://seleniumforum.forumotion.net

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum