ericmckean / chromedriver

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

driver.manage().window().getSize() is not implemented on Android #1005

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
"command only supported for desktop Chrome without debuggerAddress",
says chromedriver 2.12.301324

https://dvcs.w3.org/hg/webdriver/raw-file/default/webdriver-spec.html#methods-5

Original issue reported on code.google.com by vlotoshn...@gmail.com on 18 Dec 2014 at 1:29

GoogleCodeExporter commented 9 years ago
Can you provide me the main program  so that I can see how you run the driver?

Original comment by andrewch...@chromium.org on 31 Dec 2014 at 8:26

GoogleCodeExporter commented 9 years ago
Sorry for the delay.

Code I usually use I cannot share here, but should be able to help you do what 
you want to do.

If you are looking to reproduce the issue - that's easy, it reproduces always, 
as long as chromedriver is successfully driving Chrome on Android, regardless 
of flags and capabilities. See 
https://sites.google.com/a/chromium.org/chromedriver/getting-started/getting-sta
rted---android for how to start a Chrome for Android session with chromedriver.

Or is there something else that you are looking for my main program?

Original comment by vlotoshn...@gmail.com on 12 Jan 2015 at 7:25

GoogleCodeExporter commented 9 years ago
Need main program  that can reproduce the problem.

Original comment by andrewch...@chromium.org on 12 Jan 2015 at 6:22

GoogleCodeExporter commented 9 years ago
I see. I'll try to write one for you, it would basically be a concatenation of 
code snippets from 
https://sites.google.com/a/chromium.org/chromedriver/getting-started/getting-sta
rted---android with a bunch of assumptions about your environment. While I'm 
trying to write one, feel free to follow 
https://sites.google.com/a/chromium.org/chromedriver/getting-started/getting-sta
rted---android to start the browser session and then calling window/getSize API 
method in the language that you're going to use, such as one of these:

https://github.com/SeleniumHQ/selenium/blob/76358a4ddc82200bab6302950406eb0470cc
1298/py/selenium/webdriver/remote/webdriver.py#L727

https://github.com/SeleniumHQ/selenium/blob/76358a4ddc82200bab6302950406eb0470cc
1298/java/client/src/org/openqa/selenium/WebDriver.java#L501

Original comment by vlotoshn...@gmail.com on 12 Jan 2015 at 6:48

GoogleCodeExporter commented 9 years ago
need a benchmark direct from you to verify so that we have something in common.

Original comment by andrewch...@chromium.org on 12 Jan 2015 at 7:53

GoogleCodeExporter commented 9 years ago
Sorry, may I ask what you are trying to achieve by comparing something from me 
to something else?

Unfortunately sharing my code is impossible here (that is proprietary code; 
also there are too many thousands of lines). But if you have some code that you 
can point me at, I could help answer some questions that you may have (e.g. how 
what my code does compares to what your code does). I only don't understand 
what is that question that you try answer. As far as I know, this issue 
reproduces in more or less all cases where it possibly can, and a fix wouldn't 
depend on the particularities of how I use chromedriver.

Original comment by vlotoshn...@gmail.com on 12 Jan 2015 at 10:22

GoogleCodeExporter commented 9 years ago
according to #4,   you can create a small program to reproduce your issue by 
concatenation of code snippets.   so that we can discuss that small piece of 
codes -
as benchmark.

Original comment by andrewch...@chromium.org on 12 Jan 2015 at 10:36

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago

Original comment by samu...@chromium.org on 21 Feb 2015 at 12:18