This topic is locked

manipulate a tab

11/14/2011 9:43:17 PM
PHPRunner General questions
I
ikisoul author

I am not able to manipulate a tab eg:

(pageObj.tabs['tabGroup_New_tab1'].selectTab(1)<img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=18332&image=1&table=forumtopics' class='bbc_emoticon' alt=';)' />.
I can manipulate tab on PHPRV 5.3 but not on PHPRV 6.0 (I am currently on Build 9873) Is there anything missing. Someone help. I have tried different ways but still not able to get it running.

C
cgphp 11/15/2011
pageObj.tabs['tabGroup_New_tab1'].selectTab(1);



Is New_tab the real name of your tab ?
To manipulate a tab, you need to know the tab group name. To find this name proceed to the Visual Editor page, select the page with tab, make tab group selected and switch to the HTML mode. Tab group name will be highlighted (e.g. pageObj.tabs['New_tab_11']). Here New_tab11 is the tab group name. Add tabGroup before the tab group name (e.g. pageObj.tabs['tabGroup_New_tab_11']). Besides the tab group name you need to know the tab index. Tab index is zero based: 0 - the first tab, 1 - the second tab etc.