Thanks Colin.
Its working now.
But i had one more problem. I cant able to select the button at the top. i.e
browse button in the grid. Its an onpress type button
HTML code is
url: "/include/EspGridQuery.php?action=projects",
dataType: 'json',
colModel :
[{"display":"Name","name":"group_name","sortable":"true","align":"false","width":"120","searchable":"true"},{"display":"Category","name":"category_name","sortable":"true","align":"false","width":"180","searchable":"true"},{"display":"Type","name":"project_type_name","sortable":"true","align":"false","width":"173","searchable":"true"},{"display":"Owner","name":"user_name","sortable":"true","align":"false","width":"173","searchable":"true"}],
* buttons : [{"name":"New
Project","bclass":"add",onpress:newproject},{"name":"Edit
Project","bclass":"add",onpress:editproject},{"name":"Delete","bclass":"delete",onpress:deleteproject},{"name":"Join","bclass":"add",onpress:join},{"name":"Browse","bclass":"add",onpress:browseproject},{"separator":"true"}],*
searchitems :
[{"display":"Name","name":"group_name","sortable":"true","align":"false","width":"120","searchable":"true"},{"display":"Category","name":"category_name","sortable":"true","align":"false","width":"180","searchable":"true"},{"display":"Type","name":"project_type_name","sortable":"true","align":"false","width":"173","searchable":"true"},{"display":"Owner","name":"user_name","sortable":"true","align":"false","width":"173","searchable":"true"}],
sortname: "group_name",
sortorder: "asc",
usepager: true,
resizable: true,
title: 'Projects ',
useRp: true,
rp: 100,
showTableToggleBtn: true,
width: 646,
height: 'auto',
pagestat: "Displaying {from} to {to} of {total}
Projects",
multiSelect: false
}
the highlighted code is for the buttons.
can u help me to click the buttons http://jasperforge.org/sitenews/
Regards.
Krishna.
On Tue, Jun 2, 2009 at 1:16 PM, Colin O'Brien <[email protected]> wrote:
> Hi Krishna,
>
> If you are aware of some unique text that you are expecting in the row, you
> could use an xpath expression similiar to what I have used in practice
> below...
>
> <clickLink
> xpath=”//tr[td[contains(.,'Provider1')]]/td/a[contains(.,'Lines')]”
> description=”describe your action here”/>
>
> It starts by looking for a row in the table that contains a cell containing
> the text 'Provider1' in it, if such a row exists then I'm looking to select
> another cell in the same row that contains a link with the text 'Lines',
> then the clickLink is invoked and my action is performed...
>
> More on xpath here:
> http://www.w3schools.com/xpath/
>
> Best Regards,
> Colin.
>
>
> On Mon, Jun 1, 2009 at 11:01 AM, <[email protected]> wrote:
>
>> Send WebTest mailing list submissions to
>> [email protected]
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>> http://lists.canoo.com/mailman/listinfo/webtest
>> or, via email, send a message with subject or body 'help' to
>> [email protected]
>>
>> You can reach the person managing the list at
>> [email protected]
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of WebTest digest..."
>>
>>
>> Today's Topics:
>>
>> 1. problem with row selection in flexi grid (krishnam)
>>
>> --__--__--
>>
>> Message: 1
>> Date: Mon, 1 Jun 2009 00:38:43 -0700 (PDT)
>> From: krishnam <[email protected]>
>> To: [email protected]
>> Subject: [Webtest] problem with row selection in flexi grid
>> Reply-To: [email protected]
>> Reply-To: krishnam <[email protected]>
>>
>>
>>
>> Hello,
>>
>> Does anyone know how to select a row in a grid using Canoo Webtest.
>> I have provided an example of the type of grid I am trying to work on a
>> http://jasperforge.org/sitenews/ http://jasperforge.org/sitenews/ .
>>
>> Please help me on this.
>>
>> Thanks,
>> Krishna.
>> --
>> View this message in context:
>> http://www.nabble.com/problem-with-row-selection-in-flexi-grid-tp23775486p23775486.html
>> Sent from the WebTest mailing list archive at Nabble.com.
>>
>>
>>
>> --__--__--
>>
>> _______________________________________________
>> WebTest mailing list
>> [email protected]
>> http://lists.canoo.com/mailman/listinfo/webtest
>>
>>
>> End of WebTest Digest
>>
>
>