Coded UI issue: How to scroll in a web page using Coded UI script - css

I have two scroll bars(Horizontal and Vertical) in web page(css+html). This scroll bars are browser default controls.
My issue is: Coded UI is not able to identify vertical scroll bar and identifying horizontal scroll bar as single control, so not sure where to click for scroll.
Developers are using css property for scroll bar. So it automatically detects the overflow of data in defined container(horizontal as well as vertical).
Appreciate help on this issue, please let me know how to scroll horizontally and vertically in a web page.
Best Regards,
Sunil

Coded UI allows you to move the scroll wheel on your mouse by using Mouse.MoveScrollWheel(). You can specify a number of wheel scrolls (which is actually just partial movements of the wheel), an optional modifier key to hold while the wheel is turned, and even a UITestControl to move the wheel over (useful if you have a text area within your page that has a scroll bar).
As far as horizontal scrolling, I wasn't able to find a method within Coded UI to do this, but this article covers using System.Windows.Automation to complete the task.

I posted a similar question where I wanted to scroll a page vertically by specific pixel. You can check the solution here. Scroll web page in codedui. The solution is not entirely CodedUI but by using the native control we can scroll the page both horizontally and vertically by required pixel.

Related

How do I make a logo align to artboard as one object in adobe illustrator?

I have been working on this issue for days and have been trying different methods that I have found in similar questions on stackoverflow and other forums to make this work but can still not figure out what is keeping me from aligning the entire object as one in adobe illustrator.
I have grouped all of the objects and the objects are merged into one layer. I click Align in the control panel. Then I make sure Align to Artboard is selected. I also click on Transform to make sure the two boxes are unchecked. Then I click Align to center horizontal, everything moves accordingly. Then when I click Align to center vertically, the logo is altered. All I am trying to do is get the entire logo centered on the artboard.
Does anyone have an idea on what step I am missing to make the entire logo move as one object?
I didn't have enough reputation to post images so I provided the image links below.
Before: http://tinypic.com/r/fxyq1h/8
After: http://tinypic.com/r/2gui1ph/8
You can see that the smile is moved up a few pixels which is driving me crazy. I can resize the objects as one. I can move the objects as one. But I can't align the objects to the center of the artboard as one.
You have to active the guideline, but it's already activated.
You should see some tutorial one Adobe TV

ASP.NET use Ajax to add scrollbar to the picture

I need to add a scroll to "one" picture and load it asynchronously.. with the help of scroll bar...
The picture is bigger than the div area so need to scroll. I can use "overflow: scroll " but it loads the whole picture whereas my requirement is to load the picture as a user moves the scrollbar.
thanks
The would help to load a page with multiple large images in the manner you are describing
Lazy Load plugin
It isn't built for one giant sized image which is what you want. However it should be an easy matter to slice you image into reason sized regions or tiles and use this loader.
Out of interest really - here is a utility that will automatically slice up images to protect them from theft. I occurs to me that you could combine the two if you didn't fancy manually splitting the image - or just wanted to be a bit of a coding hero. In any case the link shows that sliced and recombined images look perfectly fine. Users can't tell if it's done right.

How do you handle when you have too many tabs in your masterpage of your application?

Actually I think it is a bit design issue.
Question is, if you have programmatically generated tabs -let's say by using repeater control- at the top of your masterpage, how do you handle them after you have too many -so that they do not overlap the view-port of the browser?
I don't want to reinvent the wheel if there are already some patterns for such an issue.
Any recommendations?
Thanks
If your tabs are going to be dynamic you should probably move them to a vertical side bar as opposed to a horizontal tab, this would make it more scalable. To maintain a consistent look and feel its probably a good idea to have static main tabs at the top with dynamic associated vertical tabs. Not sure if this helps at all?
If you want to maintain a horizontal layout, you will need to reduce the nav to viewable items and have some sort of < and > at the left and right edges of the nav to enable the user to scroll to the prior or next viewable set.
Not sure if this is what you are looking for.

color of scrollbars within the page

I need help. My main page has a long table that will typically be approximately 2 screens "tall" (assuming a 1024x768 browser window).
I want
the user to be able to browse that table up and down, while always having a set of control buttons available in the currently visible portion of the page.
AND
to retain control over the color scheme of all elements on the page.
The problem is that both solutions I could think of that address the first point (using an overflown div or a frame) involve scrollbars that I cannot style. (At least on Firefox they will invariably be gray.)
I cannot implement a "pager" which breaks the data on the table into chunks which are served one at a time (eg, having a "next 40 results" link at the bottom). The user needs to refer to the full table to find and compare multiple rows throughout the table.
What are my options? My head hurts when I think of moving this entire page to Flash for this reason...
thanks in advance...
i would use jquery and a scrollable div.
Here are some resources to get you started.
http://www.switchonthecode.com/tutorials/using-jquery-slider-to-scroll-a-div
http://flowplayer.org/tools/demos/scrollable/vertical.html
http://logicbox.net/jquery/simplyscroll/vertical.html
Don't change the styling of scrollbars unless you really know what you're doing! However, if you understand the usability implications (and try to make them as user-friendly as possible), try the following options:
If you use jQuery, try jScrollPane.
If you use MooTools, try MooScroll or MooScroller.
The following StackOverflow threads might also be useful:
How do I change the browser's scrollbar colours using CSS?
What's the deal with CSS and scroll bars?
How can one use scroll bar images?

To build a flex volume control component similar to that of Youtube

Hey, I've been assigned to design a flex 3 volume control component similar to the one Youtube players have. I mean, you move the mouse over the volume icon and a vertical slider appears.
My only doubt is about how making this vertical slider to appear and to hide properly.
Should I extend a PopUpButton somehow? Maybe another kind of PopUp component? Or do I really need to program the whole thing in actionscript(that would be just sad and sounds like reinventing the wheel)?
Is anyone able to simply point me in the right direction?
OBS: No need to teach me about skinning, designing.. or any of the rest. :)
No! Don't use a popup. Put a canvas somewhere hidden behind your bar of controls and just set it's visible to true when you mouse over the control.
I don't remember if the youtube slider covers the volume button or appears above it, but either way you can put it in there with a canvas.
If you want it to be one single component, the problem you run in to is that the size will be wrong if you hide the slider in the button component (It will be measured to be the size of the slider, instead of the button). But don't worry! Just override measure() and measure the button instead of both. Then if you set clipContent to false, it can display the slider outside of its bounds
What I suggest is to create a flex control that contains a graphic for displaying the volume meter and a hidden slider.
When you roll over the graphic volume meter you show the slider.
When you roll out the slider or the volume meter then you hide the slider.
I believe that's all

Resources