Jump to content

Submit not clicking,,,,,,,,not a link not a button but <iewc:>


Suhotro
 Share

Recommended Posts

Hi All,

In my web aplication I am not able to click a link called Submit.

I tried all the possible means like finding the list of links present in the page and then clicking it by _ClicklinkbyText, _IEAction or searching by tag name.

While searching with IE Developer tool I came to know that its comming as a part of a comment under: <iewc:> Tag. Which autoIT is not identifying.

<iewc:TreeNode NavigateUrl="abc.com" Text="Submit"></iewc:TreeNode>

I tried with SysTreeView321 also but no luck.

Please help !!

Thanks and Regards,

Suhotro Bhattacharyya

Link to comment
Share on other sites

What you are showing is the XML definition of an IE TreeView Web Control, not the HTML that is rendered in the browser to display it. You'll need to find the later in order to automate it.

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

Thanks Dale..

In my application HTML it is comming like this

<TABLE id=t1>

<TBODY>

<TR>

<TD>

<P>

<Treeview id=treeview1>

#Comments

under this comments I have <iewc:TreeNode NavigateUrl="abc.com" Text="Submit"></iewc:TreeNode>..

which needs to be clicked.

I tried to find it with tag <P> -- that was not successful.

Please help !!!!

Edited by Suhotro
Link to comment
Share on other sites

Well, with what you have provided, I could guess...

$oMenuItem = _IEGetObjById($oIE, "treeview1")

_IEAction($oMenuItem, "click")

If that is not the right item, you'll need to figure out which one is. In any case, this is the strategy to use.

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

Thanks Dale !!

However thats not working.

I was just wondering in autoIT is it possible to click a word within inner HTML? if yes then the issue will be resolved as I can capture that word to be clicked as a part of inner HTML but not able to click it.

Please suggest !!!

Edited by Suhotro
Link to comment
Share on other sites

Dale one more thing....

in all the items are comming under

$oMenuItem = _IEGetObjById($oIE, "treeview1")

Only difference that they have is in level / index.

But I am not able to select / click an element based on that idex.

Please help. !!

Link to comment
Share on other sites

You are not providing enough information to help you.

There is no such entity in HTML called a "word". There are HTML tags that define elements in the DOM (Document Object Model). Those elements have properties (such as innerText, which would be the "word" you refer to) and methods (such as "click", which is what you seem to want to perform).

Unfortunately, you need to learn a little more so that you can provide the appropriate information and ask the right questions.

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

Dale,

Yes I understand that I need to learn more however I never told that by using "word within inner HTML", I meant an entity of HTML. What I meant to click a word stored in inner text.

May be it will be again confusing to you.. let me give you one simple example..like

suppose my inner HTML is now

"Dale is a helpful person. He is a very much knowledgable"

Here in this I need to click the word Person.

Is it possible to click that using autoIT ?

Please let me know what all othet information you need to solve this.. :)

Link to comment
Share on other sites

Yes, it would be possible, but to what end? Words within innerText have no actions associated with them when they are clicked (neither does the entire innerText - only the element that is the HTML tag that includes them can have an associated action).

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

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...