Fitnium related queries

148 views
Skip to first unread message

ankit gupta

unread,
Feb 3, 2012, 6:00:05 AM2/3/12
to fit...@googlegroups.com

Hi Folks,

 

I am using fitnium framework for the automation . Currently I am facing the following issues while creating the scripts:-

 

1. I am trying to validate a text within table cell. I am using xpath to validate the cell content by using below commands

 

a. |check| text of element|//html/body/div/div[4]/div/div/div[4]/div[2]/div[2]/div[2]/div[2]/div[2]/div/div[4]/div/table/tbody/tr/td|Total:|

b. | check | text From Cell At | 0| And | 0 | in table |xpath=(//html/body/div/div[4]/div/div/div[4]/div[2]/div[2]/div[2]/div[2]/div[2]/div/div[4]/div/table/tbody/tr/td)|Total:|

 

But I am getting exception "Error Element not found". I verified xpath expression using selenium ide it is giving match found but while using above commands in fitnium it is not working.

 

2. I am trying to click checkbox which invoke javascript function and enable a button. I have used following command but it is not working.

 

| set check box | edit-termcondition | to  click | clicked| where  edit-termcondition is id of checkbox.

 

3. How we can run fitnium test for multiple times . I want to repeat same set of actions number of times for different inputs. Is there any way to loop test scripts

In fitnium.

 

Please let me know if there is any solution to above mentioned problems or any other alternative approach to achieve the same.

 

Regards,

Ankit Gupta


Keith Sterling

unread,
Feb 3, 2012, 6:09:28 AM2/3/12
to Fitnium
See comments below

On Feb 3, 11:00 am, ankit gupta <ankit.gupta0...@gmail.com> wrote:
> Hi Folks,
>
> I am using fitnium framework for the automation . Currently I am facing the
> following issues while creating the scripts:-
>
> 1. I am trying to validate a text within table cell. I am using xpath to
> validate the cell content by using below commands
>
> a. |check| text of
> element|//html/body/div/div[4]/div/div/div[4]/div[2]/div[2]/div[2]/div[2]/div[2]/div/div[4]/div/table/tbody/tr/td|Total:|

You need to include xpath= in the statement above so that it reads

|check| text of element|xpath=//html/body/div/div[4]/div/div/div[4]/
div[2]/div[2]/div[2]/div[2]/div[2]/div/div[4]/div/table/tbody/tr/td|
Total:|

>
> b. | check | text From Cell At | 0| And | 0 | in table
> |xpath=(//html/body/div/div[4]/div/div/div[4]/div[2]/div[2]/div[2]/div[2]/div[2]/div/div[4]/div/table/tbody/tr/td)|Total:|
>

In this statement you only need to provide the xpath to the table, the
fact that you include the cell locations removes the need to go right
down to the td,
So you need to rewrite this as

| check | text From Cell At | 0 | And | 0 | in table |xpath=(//html/
body/div/div[4]/div/div/div[4]/div[2]/div[2]/div[2]/div[2]/div[2]/div/
div[4]/div/table)|Total:|

Replace the the 2 0's above with the x and y locations of the cell

> But I am getting exception "Error Element not found". I verified xpath
> expression using selenium ide it is giving match found but while using
> above commands in fitnium it is not working.
>
> 2. I am trying to click checkbox which invoke javascript function and
> enable a button. I have used following command but it is not working.
>
> | set check box | edit-termcondition | to  click | clicked| where
> edit-termcondition
> is id of checkbox.

Can you provide more details. Is the html of the check box actually
id=edit-termcondition
If you can provide a snippet of html for the checkbox I can have a
look

>
> 3. How we can run fitnium test for multiple times . I want to repeat same
> set of actions number of times for different inputs. Is there any way to
> loop test scripts

There is a section in the manual, showing you how to use variables and
multiple instances of the same test by including the same test in a
master sheet
Reply all
Reply to author
Forward
0 new messages