DubBruimiduff
New Member
What is the appropriate way to select a tab in an ASP.NET TabContainer?I'm approaching this from trying to accessibility automate a third part web page, not from building a web app. I don't use ASP.NET, this is the first time I'm seeing this.Having a page with several levels of tab containers, need to be able to fire some javascript to select a tab in each container. In the example case below the second/password tab.Since it is not a button or a single element I'm not sure what to hit, and our approach so far has failed.Was going to with something like find the tab header element and send it a click, but attempts so far have failed.ie.\[code\]$get("ctl00_ContentPlaceHolder1_TabContainer1_tp_Pwd").click();\[/code\]The relevant header in the html appears to be\[code\]<div id="ctl00_ContentPlaceHolder1_TabContainer1" class="tab" style="visibility:hidden;"><div id="ctl00_ContentPlaceHolder1_TabContainer1_header"><span id="ctl00_ContentPlaceHolder1_TabContainer1_tp_Profile_tab"><span class="ajax__tab_outer"><span class="ajax__tab_inner"><span class="ajax__tab_tab" id="__tab_ctl00_ContentPlaceHolder1_TabContainer1_tp_Profile">Profile</span></span></span></span><span id="ctl00_ContentPlaceHolder1_TabContainer1_tp_Pwd_tab"><span class="ajax__tab_outer"><span class="ajax__tab_inner"><span class="ajax__tab_tab" id="__tab_ctl00_ContentPlaceHolder1_TabContainer1_tp_Pwd">Password</span></span></span></span></div>\[/code\]Also related, appears to be plumbing?\[code\]Sys.Application.add_init(function() { $create(Sys.Extended.UI.TabPanel, {"headerTab":$get("__tab_ctl00_ContentPlaceHolder1_TabContainer1_tp_Pwd"),"ownerID":"ctl00_ContentPlaceHolder1_TabContainer1"}, null, {"owner":"ctl00_ContentPlaceHolder1_TabContainer1"}, $get("ctl00_ContentPlaceHolder1_TabContainer1_tp_Pwd"));});Sys.Application.add_init(function() { $create(Sys.Extended.UI.TabContainer, {"activeTabIndex":0,"clientStateField":$get("ctl00_ContentPlaceHolder1_TabContainer1_ClientState")}, {"activeTabChanged":ActiveTabChanged}, null, $get("ctl00_ContentPlaceHolder1_TabContainer1"));});Sys.Application.add_init(function() { $create(Sys.UI._UpdateProgress, {"associatedUpdatePanelId":null,"displayAfter":0,"dynamicLayout":true}, null, null, $get("ctl00_ContentPlaceHolder1_UpdateProgress1"));});\[/code\]