Jump to content
Sign in to follow this  
sammy1983

Unable to click on Tab (subtabs)

Recommended Posts

sammy1983

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

Share this post


Link to post
Share on other sites
sammy1983

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?

Share this post


Link to post
Share on other sites
sammy1983

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!!!

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.