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 Extenstions regarding webtable testing. Empty New User Extenstions regarding webtable testing.

Sun Nov 22, 2009 10:11 pm
Hi Guys, New User Extenstions regarding webtable testing. Affraid New User Extenstions regarding webtable testing. Confused New User Extenstions regarding webtable testing. Alien New User Extenstions regarding webtable testing. Star3

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
http://www.mediafire.com/file/h2mwlzjykkj/WebTable_Related_userExtension.rar

BEST OF LUCK New User Extenstions regarding webtable testing. Icon_biggrin New User Extenstions regarding webtable testing. Icon_smile
Back to top
Permissions in this forum:
You cannot reply to topics in this forum