question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Way to get the vertical scroll bar percentage

See original GitHub issue

Expected Behavior

Expect to get vertical scroll bar percentage

Actual Behavior

Able to scroll down Unable to get verticalscrollbar percentage So that we can determine scroll bar is 100% scrolled down

Steps to Reproduce the Problem

Short Example of Code to Demonstrate the Problem

Currently using get_propeties() method but it doesn`t have info about it

Specifications

  • Pywinauto version:0.6.8
  • Python version and bitness:3.7.8
  • Platform and OS: uia n IMG_20211019_143236 Windows

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
YenikeRaghuRamcommented, Oct 19, 2021

Did you try the following code?

wrapper.iface_scroll.CurrentVerticalScrollPercent

This worked thank you so much

1reaction
YenikeRaghuRamcommented, Oct 20, 2021

(wrapper.iface_scroll.CurrentVerticalScrollPercent, wrapper.iface_scroll.CurrentVerticalViewSize) == (0,100)

Its working thank u for help

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cross-Browser Method to Determine Vertical Scroll ...
pageYOffset = The vertical scroll count without including borders. When you scroll down to bottom you get the maximum count. offsetHeight = The ......
Read more >
How I Put the Scroll Percentage in the Browser Title Bar
Some nice trickery from Knut Melvær. Ultimately the trick boils down to figuring out how far you've scrolled on the page and changing...
Read more >
Using jQuery to Capture Vertical Scroll Percentage - SitePoint
Detect % of vertical scroll using jQuery ... This little script will fire off code at any given percentage, currently set to 95%...
Read more >
Scroll Percentage - CodePen
1. $(document).ready(function() { ; 2. ​ ; 3. $(window).scroll(function(e){ ; 4. var scrollTop = $(window).scrollTop(); ; 5. var docHeight = $(document).height();.
Read more >
Get the current percentage of scroll in an element ... - Treehouse
Hey Geoffrey,. You would get the scrollable height minus the display area and then divide the scroll top by this number. The code...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found