org.openqa.selenium.interactions.MoveTargetOutOfBoundsException: Element cannot be scrolled into view:http://localhost:8080/xwiki/bin/objectremove/Test/EditObjectsTestObject?form_token=2qbLdtXxpzM1QtlGxbpZXw&classname=XWiki.XWikiUsers&classid=1&xredirect=%2Fxwiki%2Fbin%2Fedit%2FTest%2FEditObjectsTestObject%3Feditor%3Dobject
Ideally, reduced to the simplest case you can (i.e. the least HTML)
> --
> You received this message because you are subscribed to the Google Groups
> "webdriver" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/webdriver/-/Kurz0g8tIwoJ.
>
> To post to this group, send email to webd...@googlegroups.com.
> To unsubscribe from this group, send email to
> webdriver+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/webdriver?hl=en.
http://travis-ci.org/#!/spree/spree/builds/387795/L185
Error seems to have only appeared when this version was bumped.
--
You received this message because you are subscribed to the Google Groups "webdriver" group.
Our pages are generated by a server using Java and GWT--can you
suggest how to submit a reproduction page in this case?
Thanks,
Dave
PS: Mac Lion and FF 6.0.2.
So I think I've tracked down the source of this issue. I don't have
any tests cases to upload because I'm short on time, but perhaps
someone else can give it a crack.
I was getting this error locally, and I figured it was a problem with
my app, not selenium. So after digging around, I believe I had some
dodgy CSS. Take this example:
<a href="/foo/bar" class="delete"><span class="icon"></span></a>
.delete .icon {
float: left;
width: 50px;
height: 50px;
background: red;
}
Here we have a anchor that has a red block inside it. This element can
be interacted with by the user *but* from the browsers perspective,
its got no layout. Checking in firebug reports it has having no
bounding box. Because the span is floating within the a, its not
giving any bounds to the anchor.
After changing it to:
a.delete {
float: left;
overflow: hidden;
display: block;
}
My test worked. I believe this is the issue. Selenium can't scroll to
it because it has no bounds. I could be talking bollocks here, but
this changed worked for me. Perhaps it can point someone in the right
direction.
Keith
[java] [2011-12-16 10:29:07.042]
org.openqa.selenium.interactions.MoveTargetOutOfBoundsException:
Element cannot be scrolled into view:[object HTMLInputElement]
[java] Command duration or timeout: 101 milliseconds
[java] Build info: version: '2.15.0', revision: '15105', time:
'2011-12-08 09:57:28'
[java] System info: os.name: 'Windows 7', os.arch: 'amd64',
os.version: '6.1', java.version: '1.7.0_01'
[java] Driver info: driver.version: RemoteWebDriver
[java] at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[java] at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:
57)
[java] at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:
45)
[java] at
java.lang.reflect.Constructor.newInstance(Constructor.java:525)
[java] at
org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:
147)
[java] at
org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:
113)
[java] at
org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:
424)
[java] at
org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:
231)
[java] at
org.openqa.selenium.remote.RemoteWebElement.click(RemoteWebElement.java:
72)
[java] at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown
Source)
[java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
43)
[java] at java.lang.reflect.Method.invoke(Method.java:601)
[java] at org.openqa.selenium.support.events.EventFiringWebDriver
$EventFiringWebElement$1.invoke(EventFiringWebDriver.java:325)
[java] at $Proxy2.click(Unknown Source)
[java] at org.openqa.selenium.support.events.EventFiringWebDriver
$EventFiringWebElement.click(EventFiringWebDriver.java:338)
[java] at
com.intershop.tools.etest.web.seleniumdriver.WebSubmitButtonImpl.submit(WebSubmitButtonImpl.java:
25)
[java] at
com.intershop.tools.etest.web.selenium.TestAgainstSeleniumWebDriverStrategyImpl.submitWithName(TestAgainstSeleniumWebDriverStrategyImpl.java:
2658)
[java] at
com.intershop.tools.etest.web.HTTPTestCase.submitWithName(HTTPTestCase.java:
2137)
[java] at
com.intershop.tools.etest.web.WebTester.submitWithName(WebTester.java:
893)
[java] at
tests.features.com.intershop.sellside.mother.channel.ChannelPromotionMother.createPromotionInPromotionList(ChannelPromotionMother.java:
297)
[java] at
tests.features.com.intershop.sellside.mother.channel.ChannelPromotionMother.createPromotionInPromotionList(ChannelPromotionMother.java:
258)
[java] at
tests.features.com.intershop.sellside.mother.channel.ChannelPromotionMother.createPromotionInPromotionList(ChannelPromotionMother.java:
211)
[java] at
tests.features.com.intershop.sellside.mother.channel.ChannelPromotionMother.createPromotion(ChannelPromotionMother.java:
198)
[java] at
tests.features.com.intershop.sellside.mother.channel.ChannelPromotionMother.createPromotionInPromotionList(ChannelPromotionMother.java:
184)
[java] at
tests.features.com.intershop.sellside.mother.channel.ChannelPromotionMother.createPromotion(ChannelPromotionMother.java:
173)
[java] at
tests.smoke.com.intershop.sellside.channel.consumer.promotion.PromotionTest.setUp(PromotionTest.java:
36)
[java] at
tests.features.com.intershop.ucm.util.UCMHTTPTestCase.runBare(UCMHTTPTestCase.java:
217)
[java] at junit.framework.TestResult$1.protect(TestResult.java:
110)
[java] at junit.framework.TestResult.runProtected(TestResult.java:
128)
[java] at junit.framework.TestResult.run(TestResult.java:113)
[java] at junit.framework.TestCase.run(TestCase.java:124)
[java] at
tests.features.com.intershop.ucm.util.UCMHTTPTestCase.run(UCMHTTPTestCase.java:
279)
[java] at junit.framework.TestSuite.runTest(TestSuite.java:243)
[java] at junit.framework.TestSuite.run(TestSuite.java:238)
[java] at com.intershop.tools.etest.client.ISTestRunnerFrame
$15.run(ISTestRunnerFrame.java:571)
[java]
[java] [2011-12-16 10:29:07.042]
html:
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
.delete {
}
.delete .icon {
float: left;
width: 50px;
height: 50px;
background: red;
}
</style>
</head>
<body>
<a href="#" class="delete"><span class="icon"></span></a>
</body>
</html>
java test case:
@Test
public void testIssue() {
driver..get("http://localhost:5990/html/bounding-issue.html");
driver.findElement(By.className("delete")).click();
}
Stack trace:
org.openqa.selenium.remote.RemoteWebDriver execute
INFO: Executing: [null, newSession
{"desiredCapabilities":"Capabilities [{platform=ANY,
browserName=firefox, version=}]"}]
org.openqa.selenium.remote.RemoteWebDriver execute
INFO: Executing: [d42c63a7-a3c1-7842-a991-aef4da6bc5dd, get
{"url":"http://localhost:5990/html/bounding-issue.html"}]
org.openqa.selenium.remote.RemoteWebDriver execute
INFO: Executing: [d42c63a7-a3c1-7842-a991-aef4da6bc5dd, findElement
{"using":"class name","value":"delete"}]
org.openqa.selenium.remote.RemoteWebDriver execute
INFO: Executing: [d42c63a7-a3c1-7842-a991-aef4da6bc5dd, clickElement
{"id":"{2423bf83-dd7e-2c4f-9385-cb4ad78e8db7}"}]
6811 [main] ERROR
com.atlassian.webdriver.testing.rule.WebDriverScreenshotRule -
Element cannot be scrolled into view:http://localhost:5990/html/
bounding-issue.html#
Command duration or timeout: 32 milliseconds
Build info: version: '2.15.0', revision: '15105', time: '2011-12-08
12:59:39'
System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version:
'10.6.6', java.version: '1.6.0_22'
Driver info: driver.version: RemoteWebDriver
org.openqa.selenium.interactions.MoveTargetOutOfBoundsException:
Element cannot be scrolled into view:http://localhost:5990/html/
bounding-issue.html#
Command duration or timeout: 32 milliseconds
Build info: version: '2.15.0', revision: '15105', time: '2011-12-08
12:59:39'
System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version:
'10.6.6', java.version: '1.6.0_22'
Driver info: driver.version: RemoteWebDriver
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:
39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:
27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at
org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:
147)
at
org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:
113)
at
org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:
424)
at
org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:
231)
at
org.openqa.selenium.remote.RemoteWebElement.click(RemoteWebElement.java:
72)
Cheers,
Jaie
--
You received this message because you are subscribed to the Google Groups "webdriver" group.
>>> >>>> webdriver+unsubscribe@googlegroups.com.
>>> >>>> For more options, visit this group at
>>> >>>> http://groups.google.com/group/webdriver?hl=en.
>>> >>>>
>>> >>>
>>> >>> --
>>> >>> You received this message because you are subscribed to the Google
>>> >>> Groups
>>> >>> "webdriver" group.
>>> >>> To post to this group, send email to webd...@googlegroups.com.
>>> >>> To unsubscribe from this group, send email to
>>> >>> webdriver+unsubscribe@googlegroups.com.
>>> >>> For more options, visit this group at
>>> >>> http://groups.google.com/group/webdriver?hl=en.
>>> >>
>>> >>
>>> >> --
>>> >> You received this message because you are subscribed to the Google
>>> >> Groups
>>> >> "webdriver" group.
>>> >> To post to this group, send email to webd...@googlegroups.com.
>>> >> To unsubscribe from this group, send email to
>>> >> webdriver+unsubscribe@googlegroups.com.
>>> >> For more options, visit this group at
>>> >> http://groups.google.com/group/webdriver?hl=en.
>>> >
>>> >
>>> > --
>>> > You received this message because you are subscribed to the Google
>>> > Groups
>>> > "webdriver" group.
>>> > To post to this group, send email to webd...@googlegroups.com.
>>> > To unsubscribe from this group, send email to
>>> > webdriver+unsubscribe@googlegroups.com.
>>> > For more options, visit this group at
>>> > http://groups.google.com/group/webdriver?hl=en.
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "webdriver" group.
>>> To post to this group, send email to webd...@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> webdriver+unsubscribe@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/webdriver?hl=en.
>>>
>>
>>
>>
>> --
>> -Thanks
>> -Srikanth.G
>> -Google India Ltd
>> -Hyderabad
>
> --
> You received this message because you are subscribed to the Google Groups
> "webdriver" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/webdriver/-/946vp0gr5JcJ.
>
> To post to this group, send email to webd...@googlegroups.com.
> To unsubscribe from this group, send email to
> webdriver+unsubscribe@googlegroups.com.
Hi friends,
I installed build 2.25.0 then 2.28.0 then 2.31.0 with different versions of firefox but I'm still facing the same issue
org.openqa.selenium.interactions.MoveTargetOutOfBoundsException: Element cannot be scrolled into view:[object HTMLInputElement]
Element cannot be scrolled into view:[object HTMLInputElement]
Any one with any work around for this?
Ankush
--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webdriver+...@googlegroups.com.
Visit this group at http://groups.google.com/group/webdriver?hl=en.For more options, visit https://groups.google.com/groups/opt_out.
On 8 December 2011 20:34, Vincent Massol <vma...@gmail.com> wrote:
> Here's a portion of the test:
>
> final By objectLocator = By.id("xobject_" + className + "_" +
> index);
> final WebElement objectContainer =
> getDriver().findElement(objectLocator);
> WebElement deleteLink =
> objectContainer.findElement(By.className("delete"));
> deleteLink.click();
>
> Apparently it's the click() that generates the error now.
>
> --
> You received this message because you are subscribed to the Google Groups
> "webdriver" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/webdriver/-/Kurz0g8tIwoJ.
>
> To post to this group, send email to webd...@googlegroups.com.
> To unsubscribe from this group, send email to
> For more options, visit this group at
> http://groups.google.com/group/webdriver?hl=en.
Hi All, Few months back when I faced this issue, I posted on this group and carried out my task with some workaround (used Sikuli). I thought that with some latest releases this issue will be resolved. But again I tested it with 2.35 on FF 22/23 I got same error. I'm posting a sample code to reproduce it: public static void main(String[] args) { try { WebDriver driver = new FirefoxDriver(); driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS); driver.get("http://shop.sonymobile.com/gb/buy/xperia-z-black/1270-5659/"); driver.findElement(By.cssSelector("a.cta-add-to-cart.large")).click(); driver.findElement(By.id("cart-checkout")).click(); driver.findElement(By.cssSelector("a.cta-button.btn-next")).click(); Thread.sleep(5000); driver.findElement(By.cssSelector("p.same-as > input")).click(); } catch(Throwable ex) { System.out.println(ex.getMessage()); } } When I click on checkbox "Same as Delivery address" I get this eror "org.openqa.selenium.interactions.MoveTargetOutOfBoundsException: Element cannot be scrolled into view" Can anyone help me here? Thanks Ankush
Additionally, please don't add comments to issues asking for status updates. As a developer on the project, every time I see a comment saying, "Any update on this?" the snarky jerk in me wants to reply, "Yes, there's a status update, but we aren't telling you because we don't like you." If we have a status update, it'll be in the issue report; no need to ask.
I'll echo what you said about a reproducible case, except I'll ask please don't just go add comments to the issue to try to express it's importance to you. Extra comments on the issue report which essentially say, "Me, too, on <browser version> running on <OS version> with <Selenium version>," add next to no value to the issue report. If you don't have a reproducible case (including an HTML page or public URL to test against), it's far more effective to "star" the issue rather than add a comment. Such extraneous comments merely add noise to the issue report and make it harder for the dev team to actually get the information they need to fix the issue.
Additionally, please don't add comments to issues asking for status updates. As a developer on the project, every time I see a comment saying, "Any update on this?" the snarky jerk in me wants to reply, "Yes, there's a status update, but we aren't telling you because we don't like you." If we have a status update, it'll be in the issue report; no need to ask.
--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webdriver+...@googlegroups.com.
To post to this group, send email to webd...@googlegroups.com.
Visit this group at http://groups.google.com/group/webdriver.
For more options, visit https://groups.google.com/groups/opt_out.