Jump to content

click on Document List in SAP Businessobject Infoview


Recommended Posts

Thanks i am able to click on the Document List..but now i stuck in the next page where i have to click on Public Folders ,which dont have HTML page..I tried with Below script but its not working: 

i am not seeing any error in output console.

Local $sMyString = "Public Folders"
Local $oLinks = _IELinkGetCollection($oIE)
For $oLink In $oLinks
    Local $sLinkText = _IEPropertyGet($oLink, "innerText")
    If StringInStr($sLinkText, $sMyString) Then
        _IEAction($oLink, "click")
        ExitLoop
    EndIf

image.png.6b2d427d85da35706bde94f5c2d3b134.png

Link to comment
Share on other sites

Below is the HTML code i found:

 

<SPAN id=ListingURE_treeNode4_name style="WHITE-SPACE: nowrap"><IMG id=ListingURE_treeNodeIcon_4 style="HEIGHT: 16px; WIDTH: 16px" border=0 alt="" src="http://server.com:8080/InfoViewAppActions/ure/ure/cache/images/kind/Folder/Unexpanded.gif">&nbsp;Public Folders&nbsp;</SPAN>

Edited by MRAJ
Link to comment
Share on other sites

$oFrame = _IETagNameGetCollection($oIE, "span")
$oSpan = _IEGetObjById($oFrame, "ListingURE_treeNode4_name")
_IEAction($oSpan, "click")

_IEImgClick($oIE, "Unexpanded.gif","src")

Above 2 scripts i tried but no success.

Link to comment
Share on other sites

2 hours ago, MRAJ said:

Below is the HTML code i found:

<SPAN id=ListingURE_treeNode4_name style="WHITE-SPACE: nowrap"><IMG id=ListingURE_treeNodeIcon_4 style="HEIGHT: 16px; WIDTH: 16px" border=0 alt="" src="http://server.com:8080/InfoViewAppActions/ure/ure/cache/images/kind/Folder/Unexpanded.gif">&nbsp;Public Folders&nbsp;</SPAN>

Well... that would explain why your attempt with _IELinkGetCollection failed. ^_^

Please show us the results you get in the Output panel when you run the code in Scite. Without that, we can only guess at why it didn't work.

Link to comment
Share on other sites

IE.au3 T3.0-2 Error from function _IEGetObById, $_IESTATUS_InvalidObjectType
--> IE.au3 T3.0-2 Error from function _IEAction(click), $_IESTATUS_InvalidDataType
--> IE.au3 T3.0-2 Warning from function _IEImgClick, $_IESTATUS_NoMatch
--> IE.au3 T3.0-2 Warning from function _IEGetObjById, $_IESTATUS_NoMatch (ListingURE_listColumn_9_0_3)
--> IE.au3 T3.0-2 Error from function _IEAction(click), $_IESTATUS_InvalidDataType
>Exit code: 0    Time: 56.38
 

Link to comment
Share on other sites

$oFrame = _IETagNameGetCollection($oIE, "span")
$oSpan = _IEGetObjById($oFrame, "ListingURE_treeNode4_name")
_IEAction($oSpan, "click")

_IEImgClick($oIE, "Unexpanded.gif","src")

i tried even this script too..

Link to comment
Share on other sites

13 minutes ago, MRAJ said:

IE.au3 T3.0-2 Error from function _IEGetObById, $_IESTATUS_InvalidObjectType

You can't pass a collection (the result from _IETagNameGetCollection) as the first parameter of the other _IE functions. This is why you are getting this initial error.

Assuming that there are still frames involved, I would suggest that you try something like this --

$oFrame = _IEFrameGetCollection($oIE, 0)
$oSpan = _IEGetObjById($oFrame, "ListingURE_treeNode4_name")
_IEAction($oSpan, "click")

This obviously assumes that the desired element is located in the first frame. Since we can't access the site, you have to do some investigative work on your own to figure out what it will take to make this work.

Link to comment
Share on other sites

I tried but no result..

 

$oFrame = _IEFrameGetCollection($oIE, 0)
$oSpan = _IEGetObjById($oFrame, "ListingURE_treeNode4_name")
_IEAction($oSpan, "click")

--> IE.au3 T3.0-2 Warning from function _IEGetObjById, $_IESTATUS_NoMatch (ListingURE_treeNode4_name)
--> IE.au3 T3.0-2 Error from function _IEAction(click), $_IESTATUS_InvalidDataType
--> IE.au3 T3.0-2 Warning from function _IEGetObjById, $_IESTATUS_NoMatch (ListingURE_listColumn_9_0_3)
--> IE.au3 T3.0-2 Error from function _IEAction(click), $_IESTATUS_InvalidDataType
>Exit code: 0    Time: 56.62

Link to comment
Share on other sites

its not working still. Below is the output result:

   
--> IE.au3 T3.0-2 Warning from function _IEGetObjById, $_IESTATUS_NoMatch (ListingURE_treeNode4_name)
--> IE.au3 T3.0-2 Error from function _IEAction(click), $_IESTATUS_InvalidDataType
--> IE.au3 T3.0-2 Error from function _IEGetObById, $_IESTATUS_InvalidObjectType
--> IE.au3 T3.0-2 Error from function _IEAction(click), $_IESTATUS_InvalidDataType
>Exit code: 0    Time: 53.44
 

 

Link to comment
Share on other sites

here some more HTML page..let me know if this can help..

<IMG class=ygtvaccessibleImg alt="Public Folders collapsed" src="http://server.com:8080/InfoViewAppActions/ure/ure/yui/build/treeview/assets/lp.gif">

_IEImgClick($oIE, "lp.gif","src")

i tried even this too but it is not working...

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