jarmo / RAutomation

RAutomation
MIT License
100 stars 33 forks source link

Feature Request: Select a table row by options #7

Closed myungs closed 11 years ago

myungs commented 13 years ago
table.select(:value => "John Doe")

table.selected(:value => "John Doe")
jarmo commented 13 years ago

What do you mean by selecting table row? Do you mean select list instead of table? Table should be just a row x column data structure with static data and shouldn't allow any #select or #selected methods.

myungs commented 13 years ago

The example given was based off the table in WindowsForms in ext. The current implementation of table only allows for selecting by a row number:

From the spec: table.select(2) table.selected?(2).should == true

I was looking for the ability to select a row by a column value.

table.select(:value => "John Doe")

Would select the first row.

jarmo commented 11 years ago

@leviwilson isn't this supported now by ms_uia adapter?

leviwilson commented 11 years ago

@jarmo Not at the moment, but it could easily be added. Right now Table#select only works by index.

jarmo commented 11 years ago

Feature added in d2f351671 and 9101eb206cda427. Closing this.