Display results as :

Rechercher Advanced Search

Latest topics
» 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

» How to work on pages with AJAX in selenium?
Mon Sep 18, 2017 6:08 pm by azharuddin

» pause test until user press a key like F2
Wed Aug 09, 2017 11:10 pm by djnforce

» Selecting the input for auto populating element
Sat Jul 29, 2017 7:53 pm by kdabbara


New User Extenstions regarding webtable testing.

View previous topic View next topic Go down

New User Extenstions regarding webtable testing.

Post by Adviser on Sun Nov 22, 2009 10:11 pm

Hi Guys,

I have developed some new user extension to test web table which is not possible from basic commands. so, for you I have develop some and I'm sure this will help u guys to test your applications.

Note: This user extension is working fine in IDE but I have not tested in RC. It contains one function which will be run only in RC because it returns multi dimensional array.

This user extension contains the following functions:
1. StoreTableColumnNumberText:
This function store text of column from the table. This is useful to verify the table column header. The result will be store into variable.

How to use command:

* [info] Executing:|storeTableColumnNumberText | memberlist|8 | text |
* [info] Executing: |type | username | ${text} |
* [info] Executing: |assertTableColumnNumberText | memberlist|8 | Website |

Note: pipeline(|) is used as separator. Like: tableID|columnNumber

2. StoreTableColumnsNumber:
This function store total number of columns contain in a table. The result will be store into variable.

How to use command:

* [info] Executing: |storeTableColumnsNumber | memberlist | col |
* [info] Executing: |type | username | ${col} |
* [info] Executing: |assertTableColumnsNumber | memberlist | 8 |

3. StoreTableRowsNumber:

This function store total number of rows contain in a table excluding its header row which contains title. The result
will be store into variable.

How to use command:

* [info] Executing: |storeTableRowsNumber |memberlist | row |
* [info] Executing: |type | username |${row} |
* [info] Executing: |assertTableRowsNumber| memberlist | 50 |

4. StoreWebTableInArray:
This function stores web table in array on the basis of number of rows and column.This method will useful to verify web table on the browser. This will give you webtable stored into array from browser.

@param locator an element locator pointing to an webTable id on the browser*
@return string[][] returns a multidimensional array on the basis of table.

NOTE: This function only be use through RC not through IDE.

How to use command:
This is to be used in java through RC or depends on the language which u are using

String[ ][ ] webTableArray = selenium. getWebTableInArray(tableLocator);

HOPE! This will help you solve the webtable testing problem little bit. Soon you will get few more functions to ease
your testing through selenium.

DOWNLOAD FROM THIS LINK file/h2mwlzjykkj/WebTable_Related_userExtension.rar


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

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