Hi,

On 04/08/2011 01:21 PM, ziepf wrote:
> Hi,
>
> I use a table to display the users of our application.
> I use qxTableClick(locator,"cellValue="+username+",double=true") to click
> the user - but this only works if the user is visible on the monitor - or I
> must scroll the user to that area.
> Is it possible to click on a user that is not visible ?

qxTableClick should automatically scroll the target cell into view 
before executing the click(s). Are you getting an error? You can also 
try running your command in Selenium IDE with the log level set to 
"debug". That should give you some idea of what's going wrong.

>
> The second thing is if I create a new user it is not possible to click on
> the user because the qxTableclick can't find the user but the user is there
> and visible in the table - any idea ?

How are you adding the user? If you're using the qxEditTableCell 
command, you need to make sure the cell is no longer in edit mode before 
you try to click it. The easiest way to do do this is to single-click a 
different cell. For example, here's a full editing sequence you can 
paste into Selenium IDE and run against the Table Cell Editor demo 
(http://demo.qooxdoo.org/current/demobrowser/demo/table/Table_Cell_Editor.html):

<tr>
        <td>qxTableClick</td>
        <td>qxhv=*/qx.ui.table.Table</td>
        <td>row=0,col=1,double=true</td>
</tr>
<tr>
        <td>qxEditTableCell</td>
        <td>qxhv=*/qx.ui.table.Table</td>
        <td>row=0,col=1,type=New Value</td>
</tr>
<tr>
        <td>qxTableClick</td>
        <td>qxhv=*/qx.ui.table.Table</td>
        <td>row=2,col=0</td>
</tr>
<tr>
        <td>qxTableClick</td>
        <td>qxhv=*/qx.ui.table.Table</td>
        <td>cellValue=New Value</td>
</tr>


>
> The third question is - is there a easy way to check if a user in a table is
> there or not ?

I'd try to click the cell using cellValue to locate it. It will fail 
with the message "Could not find a visible cell with the given value" if 
the value isn't in the table. Of course, that brings us back to your 
first question so you need to find out why cellValue isn't working as it 
should.


Regards,
Daniel

------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to