ktoya Posted June 5, 2014 Share Posted June 5, 2014 Hi, I need to click some links in a webpage and show them in new window or new tab for each link. I use IEAction(link,"click") to open a link, but if there is no "target=_blank" in a <a href> tag, the target page is not showing in the new window. what I can do to click the link to a new window? normally you can middle mouse click the link to open. is there any function to simulate? Link to comment Share on other sites More sharing options...
JohnOne Posted June 5, 2014 Share Posted June 5, 2014 Probably better to retrieve the link and use it with _IECreate. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
ktoya Posted June 5, 2014 Author Share Posted June 5, 2014 I can't do it because _IECreate() is a direct visit other than referrer from link. Link to comment Share on other sites More sharing options...
Danp2 Posted June 5, 2014 Share Posted June 5, 2014 What site are you accessing? Please explain why you need the referrer information to carry over to the new tab. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
dragan Posted June 5, 2014 Share Posted June 5, 2014 How about setting the target attribute: $oObject.setAttribute("target") = "_blank"; $oObject is the link object ;now you can "click" the link, and it will be opened in a new window. mLipok and payne 2 Link to comment Share on other sites More sharing options...
payne Posted November 26, 2015 Share Posted November 26, 2015 How about setting the target attribute: $oObject.setAttribute("target") = "_blank"; $oObject is the link object ;now you can "click" the link, and it will be opened in a new window.thanks, this help me a lot. 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