muhmuuh 0 Posted September 13, 2007 Hello I have a problem with _IELinkClickByText So far it works normally but it doesn't work for one site Here is the link from the source of the site <a href="url" id="id"><strong>text</strong></a> I haven't seen those '<strong>' tags before and actually don't know what is it. In my code I have _IELinkClickByText ($oIE, "text") and it doesn't work (no match) I think it is because of the 'strong' tags. What should I do to make it works? Thanks I ran. I ran until my muscles burned and my veins pumped battery acid. Then I ran some more. Share this post Link to post Share on other sites
Affe 1 Posted September 13, 2007 Hello I have a problem with _IELinkClickByText So far it works normally but it doesn't work for one site Here is the link from the source of the site <a href="url" id="id"><strong>text</strong></a> I haven't seen those '<strong>' tags before and actually don't know what is it. In my code I have _IELinkClickByText ($oIE, "text") and it doesn't work (no match) I think it is because of the 'strong' tags. What should I do to make it works? Thanks http://www.htmlcodetutorial.com/_STRONG.html That will tell you that the Strong tag basically makes the text within bolded. You can try using _IELinkClickByText($oIE, "<strong>text</strong>") and see if that works, and if it doesn't, your best bet would be to get the links index and click using that. [center][/center] Share this post Link to post Share on other sites
big_daddy 20 Posted September 13, 2007 It works for me, verify your link text doesn't have a space before or after. #include <IE.au3> $oIE = _IECreate() $sHTML = '<a href="http://www.google.com" id="google"><strong>Link to google.</strong></a>' _IEBodyWriteHTML($oIE, $sHTML) _IELinkClickByText($oIE, "Link to google.") Share this post Link to post Share on other sites
muhmuuh 0 Posted September 13, 2007 _IELinkClickByText($oIE, "<strong>text</strong>") doesn't work for me It looks I'll have to use link idexes Thank you I ran. I ran until my muscles burned and my veins pumped battery acid. Then I ran some more. Share this post Link to post Share on other sites
muhmuuh 0 Posted September 13, 2007 omg sorry for spaming as I copied the link text from the source code I didn't copy the last letter it works with _IELinkClickByText ($oIE, "text") again sorry for wasting your time I ran. I ran until my muscles burned and my veins pumped battery acid. Then I ran some more. Share this post Link to post Share on other sites