sammy1983 Posted February 19, 2014 Share Posted February 19, 2014 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? Link to comment Share on other sites More sharing options...
Danp2 Posted February 20, 2014 Share Posted February 20, 2014 How are you able to click on the 4th / 5th tabs? Show us your code. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
sammy1983 Posted February 20, 2014 Author Share Posted February 20, 2014 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? Link to comment Share on other sites More sharing options...
sammy1983 Posted February 20, 2014 Author Share Posted February 20, 2014 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!!! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now