rahul7386 / robotium

Automatically exported from code.google.com/p/robotium
0 stars 0 forks source link

Issue with solo.sendkeys(Solo.DOWN) method #533

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi Renas,

I'm testing an hybrid android App while using solo.sendKeys(Solo.DOWN) method 
to scroll the page i encountered the following problem,

I have a Web page which consists of a Search Textbox with its appropriate 
Search Button, there are some sections on the page which are not visible on the 
current device display for which i need to scroll and hence when i call 
solo.sendKeys(Solo.DOWN) method to scroll down the page, the scroller cursor 
focuses on the Search textbox and the cursor remains in the Search textBox 
itself not allowing me to scroll down. 

What i understand is, when i use solo.sendKeys(Solo.DOWN) to scroll down it 
starts scrolling from beginning of the page and not the from current position 
where it is called.

Can you please provide your inputs and some update on this.

Thanks,
Zaid Momin

Original issue reported on code.google.com by Zaid.I.M...@gmail.com on 11 Oct 2013 at 5:21

GoogleCodeExporter commented 9 years ago
You should use scrollDown() to scroll the page. The command 
solo.sendKeys(Solo.DOWN) will only send the key down command. 

Original comment by renasr...@gmail.com on 14 Oct 2013 at 5:54