Jump to content

Example of FireEvent not working


rahoolm
 Share

Recommended Posts

http://www.dhtmlcentral.com

http://www.autoitscript.com/forum/index.php?showtopic=13398&st=0&p=91358&#entry91358

#include <IE.au3>

$oIE = _IECreate(); Create a new browser window
_IENavigate($oIE, "http://www.dhtmlcentral.com")

$divs = _IETagNameGetCollection ($oIE.document, "div")

$divs.item("oM_m1").fireEvent("onmouseover")
Sleep(600)
$divs.item("oM_m2").fireEvent("onmouseover")
Sleep(600)
$divs.item("oM_m3").fireEvent("onmouseover")
Sleep(600)
$divs.item("oM_m4").fireEvent("onmouseover")
Sleep(600)
$divs.item("oM_m5").fireEvent("onmouseover")
Sleep(600)
$divs.item("oM_m6").fireEvent("onmouseover")
Sleep(600)
$divs.item("oM_m7").fireEvent("onmouseover")
Sleep(600)
$divs.item("oM_m1").fireEvent("onmouseover")
Sleep(600)
$divs.item("oM_m9").fireEvent("onmouseover")
Sleep(600)
$divs.item("oM_m9").click

Could you please provide me a new example for fireevent and how to find hidden columns and text-buttons?

How to click text buttons?

How to work with javascript/dhtml menus? Please provide an example with a url online.

How to find onmouseover , onclick or onmousedown stuff?

How to click dhtml menus and automate these menus using autoit?

How to use _IEPropertyGet ?

What is <TD> tag and how to click on it?

In my case, the class is text-button, title="Actions" and DIV Actions

How should i click on the text-button Actions. There is no id or name associated with it.

Thanks in advance for your help and support.

-Regards,

Rahul

Edited by rahulmraut
Link to comment
Share on other sites

The example is still valid, but the Internet site it referenced has changed.

Provide another example of what you would like to automate and you'll likely get some help.

Dale

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y

Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Link to comment
Share on other sites

The example is still valid, but the Internet site it referenced has changed.

Provide another example of what you would like to automate and you'll likely get some help.

Dale

Can you please provide an example by referencing a new site having menus and how you automate it?

#include <IE.au3>

$oIE = _IECreate()
_IENavigate($oIE, "http://servername:portnumber/uri/common/emxNavigator.jsp")
;~ $oDoc = _IEDocGetObj($oIE)
_IELoadWait($oIE)

$oTDs = _IETagNameGetCollection($oIE,"TD" )
For $oTD in $oTDs
    if $oTD.title == "Actions" Then _
    ConsoleWrite(@Tab & $oTD.tagname & _
    @TAB & "innerText: " & $oTD.innerText & _
    @TAB & "title: " & $oTD.title & _
    @CRLF)
Next
Sleep (500)
;~ $oTD.FireEvent = ("onmouseover")
Sleep (500)
;~ $oTD.FireEvent = ("focus")

How to get what fireevent is used whether it is onmouseover or onclick or onmousedown?

Also How to know TD contains .title , .tagname, .innerText or .outerText or anything else?

Is it better to use $oTDs = _IETagNameGetCollection($oIE,"DIV" ) that is "DIV" instead of "TD"?

Will i be able to click on it then?

Thanks in advance!

-Rahul

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...