Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» Run automated selenium test scripts from JIRA ondemand
Fri Dec 08, 2017 12:40 pm by azharuddin

» New! Appium Desktop
Sat Nov 25, 2017 3:51 pm by azharuddin

» Selenium WebDriver Integration
Tue Nov 21, 2017 1:06 pm by azharuddin

» how to connect DB in selenium webriver
Fri Oct 06, 2017 4:09 pm by anbarasi

» How find any text in browser screen and click on it?
Thu Oct 05, 2017 2:02 pm by sandeepkommineni

» Selenium Webdriver
Tue Oct 03, 2017 1:35 pm by PiyushBiswas

» GRID setup tutorial.
Wed Sep 27, 2017 4:29 pm by johnyapp

» Drag & Drop Between Windows Using Selenium Driver
Wed Sep 27, 2017 2:10 pm by 26rondel

» Check if window is closed / verify input
Sat Sep 23, 2017 10:21 pm by brainstir

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:
mediafire.com file/eigncigz3u2/BasicFunctions_UserExtension.rar

Enjoy it.

Bye
avatar
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