Jump to content

Is there a way to click java frames ?


Recommended Posts

There is a link in the java window. The link is this one

<table border="0" cellpadding="0" cellspacing="1">
<tr><td nowrap class="SAPBEXBtnEmphIe4">                                    <a class="SAPBEXBtnEmph"  href="Javascript:SAPBWBUTTONOPNRWIN('TRANSFER' )"    title="Transfer" > 
                                      <nobr>
                                        &nbsp; Transfer
                                      </nobr>
                                    </a>
</td>
</tr></table>

Is there a way to click this without using mouse?

Thanks in advance

Link to comment
Share on other sites

There is a link in the java window. The link is this one

<table border="0" cellpadding="0" cellspacing="1">
<tr><td nowrap class="SAPBEXBtnEmphIe4">                                    <a class="SAPBEXBtnEmph"  href="Javascript:SAPBWBUTTONOPNRWIN('TRANSFER' )"    title="Transfer" > 
                                      <nobr>
                                        &nbsp; Transfer
                                      </nobr>
                                    </a>
</td>
</tr></table>

Is there a way to click this without using mouse?

Thanks in advance

I don't know really how to do it, I'll just throw in a simple idea. How about moving to the link sending the right amount of TAB?

Like when you are in a webpage or in an application and with TAB you can browse the various buttons, you might be able to do it with tab.

I'm a compulsive poster. When I post something, come to read it at least 5 minutes later after the posting, because I will edit it. I edited even this signature a few minutes later after I wrote it.

Link to comment
Share on other sites

About the tab. I dont know why but it doesnt work. It is the 187th item that needs to be clicked. But it stops around at 150 or so. I tried to add 5 by 5. But it stop when 5 tabs remaining.

<table class="SAPBEXBtnStdBorder" cellspacing="0" cellpadding="0" border="0">
<tr><td nowrap>
<table border="0" cellpadding="0" cellspacing="1">
<tr><td nowrap class="SAPBEXBtnStdIe4">                                    <a class="SAPBEXBtnStd"  href="Javascript:SAPBWBUTTON('PROCESS_VARIABLES','VAR_SUBMIT',' ')"     > 
                                      <nobr>
                                        &nbsp;Execute
                                      </nobr>
                                    </a>
</td>
</tr></table>

This is the button. _IENavigate doesnt seem to work.

_IENavigate ($oIE, "Javascript:SAPBWBUTTON('PROCESS_VARIABLES','VAR_SUBMIT')") . I tried it like this.

Link to comment
Share on other sites

If this is the first table on the page, this will work:

$oTable = _IETableGetCollection($oIE, 0) ; if not first table, increase index
$oA = _IETagnameGetCollection($oTable, "a", 0)
_IEAction($oA, "click")
_IELoadWait($oIE)

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

If this is the first table on the page, this will work:

$oTable = _IETableGetCollection($oIE, 0) ; if not first table, increase index
$oA = _IETagnameGetCollection($oTable, "a", 0)
_IEAction($oA, "click")
_IELoadWait($oIE)

Dale

--> IE.au3 V2.4-0 Error from function _IETableGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 V2.4-0 Error from function _IETagNameGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 V2.4-0 Error from function _IEAction, $_IEStatus_InvalidDataType
--> IE.au3 V2.4-0 Error from function _IELoadWait, $_IEStatus_InvalidDataType

I get this when i try it.

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