Blank517

_IEAction don't work with <span>

2 posts in this topic

When my script run this code (without errors/warnings) , in theory should click the object, but wait a few seconds without click them (more then 1,5) and then closes

AutoIt:

$ObjData = _IEGetObjById($ObjForm[0], "sendlogs_button")
_IEAction($ObjData, "click")
Sleep(1500)
_IEQuit($ObjForm[0])

HTML:

<div class="send-container">
  [html]
  <span class="send-logs show" id="sendlogs_button" style="cursor: pointer;">
    Send logs to an Admin
  </span>
</div>

Sorry for my bad english ^^

Share this post


Link to post
Share on other sites



Not much to go on from your post. You could try adding some logging to make sure that you are getting the correct object:

ConsoleWrite("nodeName = " & $ObjData.nodeName &  @CRLF)
ConsoleWrite("Classname = " & $ObjData.classname &  @CRLF)
ConsoleWrite("Innertext = " & $ObjData.innertext &  @CRLF)

 

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