You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.
Running FF v 35 on Mac 10.9.3, with selenium 2.44. jsexecutor script fails run in java
via selenium, with error "arguments[0] is undefined". Same code etc works when i fall
back to FF 34.05. My code in question is:
element = driver.findElement(By.xpath("//a[contains(@href,'/index.php?main_page=login')]"));
Log.info("found link");
Log.info(element.getText());
Log.info(element.getAttribute("target"));
Log.info(element.getAttribute("class"));
String js1 = "arguments[0].removeAttribute('target')"
jsexecutor.executeScript(js1, element);
Below is my log output, showing that the element is correctly found:
2015-01-20 18:05:13,615 INFO [Log] found link
2015-01-20 18:05:13,632 INFO [Log] Storefront
2015-01-20 18:05:13,643 INFO [Log] _blank
2015-01-20 18:05:13,667 INFO [Log] header-button
2015-01-20 18:05:13,689 ERROR [Log] Storefront link not found.
The element's html code is:
<a class="header-button" target="_blank" href="https://qa-exchange.parchment.com/send/adds/index.php?main_page=login&s_id=PjoDfkXNIPaQawpP">
<span class="content">
<i class="icon-shopping-cart icon-2x"></i>
<br></br>
Storefront
</span>
</a>
Actual results:
"arguments[0] is undefined".
Expected results:
jsexecutor should executre correctly and html element be modified.
I have filed this as a bug for Mozilla, at https://bugzilla.mozilla.org/show_bug.cgi?id=1123998.
Mozilla is calling this a bug in JavascriptExecutor.
Reported by jalexander@parchment.com on 2015-01-21 19:11:25
The text was updated successfully, but these errors were encountered:
Originally reported on Google Code with ID 8418
Reported by
jalexander@parchment.com
on 2015-01-21 19:11:25The text was updated successfully, but these errors were encountered: