Jump to content

Recommended Posts

Posted

Hi,

Here is the another problem pulled me to Forum again.

I have 5 tabs on the webpage. 

Be default, 1st tab is selected when the page loads, so no problem with that. I am able to navigate/click on 4th and 5th tab from left but I am not able to click/select 2nd and 3rd tab. After little researchI found the below from View Source.

Can anyone suggest how to code to click on 2nd or 3rd tab?

post-80752-0-26694100-1392847141_thumb.j

post-80752-0-82152900-1392847158_thumb.j

Posted

How are you able to click on the 4th / 5th tabs? Show us your code.

 

Here is the code Danp2:

_IELinkClickByIndex($oIE, 16)

but if I change the index to 15 or 14, I couldn't click the tabs. This is weird. From the source code snippet, I found that 4th and 5th tab has their id but same is missing for 2nd and 3rd. Will this be a problem?

Posted

After a hectic research on Forum posts, finally found out the cure.

; Below code will find subtabs
$oButton = $oIE.document.GetElementById("tab2")
$oButton.fireEvent("onclick")
 
Thanks Danp2 for offering the help. Cheers!!!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...