Question
areteans technology solutions pvt ltd
IN
Last activity: 17 Jul 2017 1:12 EDT
how to select the drop down list in table its id dynamically change but its appear always in 4th column
Hi,
i didnt find the how to find dropdown list in datatable,the dropdown id dynamically changes
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
BUPA
AU
Hi,
Can you pls elaborate your requirement a bit more?
areteans technology solutions pvt ltd
IN
hi,
the main problem is i didnt create tabel section.one table have one row data.
Pegasystems Inc.
US
Interrogate you HTML data table and create a table section for each row. Add any data cells where you need to read only the text. Once you save and close the HTML table designer, you can now interrogate the combo box. It will appear inside your table section. Since it has an ElementID, the UseElementID property of the control will likely be enabled. You must disable this as the ID is dynamic. Then you can edit the match rules so that you only match on the type of control. There doesn't need to be any specific match rules as there is only one combo box per row.
areteans technology solutions pvt ltd
IN
Thanks.but the problem is i am not creating table section.
Pegasystems Inc.
US
You're welcome.
areteans technology solutions pvt ltd
IN
but i didnt create the table section?
Pegasystems Inc.
US
Why not?
areteans technology solutions pvt ltd
IN
please check the below
1)open the below link http://training.openspan.com (its a sample website provided by openspan team)
2)login the portal using any credentials
3)click on order and in that quick order
to scrap that table its doesnt allow to create table section.
please find attached files
Pegasystems Inc.
US
I understand your issue now that you have given me access. In this case each "row" is really a separate table and there isn't any table containing all of the rows. You can interrogate each "row" as a table. The items inside the row that use an element ID will need to have their match rules modified to not use that (click the pale yellow bar above the control that displays "Use element ID is enabled..."). You'll need to delete the element ID match rule or modify it to allow it to match all of the other identical elements. Notice the row number is part of the ID for the combo box. That will need to be modified to allow it to match each one.
Then you can enable UseKeys for the HTML table itself. This will allow you to iterate through all instances of the table by calling its GetClones method. For each clone, you can use the Key property to interact with each specific control in that table. This won't be as convenient as the HTML table designer, but will work.
areteans technology solutions pvt ltd
IN
thanks