Tova_Veer Posted July 18, 2018 Share Posted July 18, 2018 I am new to AutoIt But i have written in other scripting languages before. and i need to get the img src of the div <div id="DivId"> <img src="../image/source" class="image"></div> </div> This is the divider $ImageTagsOfDiv = .document.getElementById('DivId').getElementsByTagName('img') $GetImg = $ImageTagsOfDiv[0] $Src = $GetImg.src This is the code i am trying to use and the src of the img Quote "F:\AutoIt Scripts\Script.au3" (52) : ==> Subscript used on non-accessible variable.: $GetImg = $ImageTagsOfDiv[0] $GetImg = $ImageTagsOfDiv^ ERROR This is the error it returns, and i do not understand how to fix it. can anybody help? Link to comment Share on other sites More sharing options...
Danp2 Posted July 18, 2018 Share Posted July 18, 2018 Suggest that you go read the forum rules as previously directed. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Tova_Veer Posted July 18, 2018 Author Share Posted July 18, 2018 2 minutes ago, Danp2 said: Suggest that you go read the forum rules as previously directed. i have read the forum rules, and i would just like some help understanding how to fix this. Link to comment Share on other sites More sharing options...
Tova_Veer Posted July 18, 2018 Author Share Posted July 18, 2018 I also do not understand what is wrong with this post, as i have removed all content from the post that is in violation of forum rules Link to comment Share on other sites More sharing options...
Danp2 Posted July 19, 2018 Share Posted July 19, 2018 Perhaps you missed this section -- Quote 7. Do not repost the same question if the previous thread has been locked - particularly if you merely reword the question to get around one of the prohibitions listed above. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Tova_Veer Posted July 19, 2018 Author Share Posted July 19, 2018 Sorry, didn't see that. I'll stop asking this question. Link to comment Share on other sites More sharing options...
Recommended Posts