8 Feb 2011 7:32 AM #1
Set IDs of Grid header and filters
I'm working on an ExtGWT grid that looks exactly like this one: http://www.sencha.com/examples/pages...idfilters.html
I would like to set a static ID on the filtering fields (e.g. the field where the user write a company name, or the date pickers where he can filter the column "Last Updated", etc...) to have Selenium performing filtering.
I know it's the purpose of ensureDebugId("..."), but I don't have access to these elements, so I can't use this method on them. I also used it to set the Grid ID and it worked, but the IDs of the filtering fields are still dynamically generated ("x-auto-33", etc..).
Any idea ?
Thanks a lot
14 Feb 2011 12:04 PM #2
You should not need to set IDs on inner elements for testing. Selenium for example supports xpath which could select child elements without that they have an id.
By d.zucconi in forum Ext 3.x: User Extensions and PluginsReplies: 169Last Post: 5 Jun 2013, 10:30 AM
By EnzoM in forum Ext 3.x: User Extensions and PluginsReplies: 0Last Post: 31 Aug 2010, 3:06 AM
By d.zucconi in forum Ext 2.x: User Extensions and PluginsReplies: 59Last Post: 5 Aug 2010, 11:01 PM
By d.zucconi in forum Ext 3.x: User Extensions and PluginsReplies: 0Last Post: 1 Oct 2009, 10:30 PM