Highlighted
Absent Member.. Absent Member..
Absent Member..
1003 views

Unable to scroll frame which is displayed on page

Jump to solution

Hello,

 

We have an issue where we are trying to scroll using scroll bar on Frame which is displayed on the page. I am able to scroll the page up and down usjng mercury device replay using below code. But i cannot scroll frame. Can anyone help me here?

 


Set objBrowser1 = Browser("name:=Browser.*")

 myhWnd=objBrowser1 .Object.HWND  
 Set myWindow = Window("HWND:=" & myhWnd)  
 
  myWindow.Activate
  Set devicereplay = CreateObject("Mercury.DeviceReplay")
 wait 2
 devicereplay.PressKey 201  'page up
'    devicereplay.PressKey 201  'page up
 Set devicereplay = Nothing
 Set myhWnd = Nothing
Set objBrowser1= Nothing

 

 

 

0 Likes
1 Solution

Accepted Solutions
Highlighted
Super Contributor.
Super Contributor.

Hi,

 

If you haven't found a solution for the scrolling down problem you could try using the 'makeobjvisible' method on the object that you wanted to scroll down to. It should make it visible if this is what you wanted to achieve.

 

Hope this helps.

 

 

Accept as solution and give kudos to the author if the information helped you solve your problem.

View solution in original post

1 Reply
Highlighted
Super Contributor.
Super Contributor.

Hi,

 

If you haven't found a solution for the scrolling down problem you could try using the 'makeobjvisible' method on the object that you wanted to scroll down to. It should make it visible if this is what you wanted to achieve.

 

Hope this helps.

 

 

Accept as solution and give kudos to the author if the information helped you solve your problem.

View solution in original post

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.