|
|
@@ -1886,9 +1886,8 @@ sub execute_async_script {
|
|
|
if ( Scalar::Util::blessed( $args[$i] )
|
|
|
and $args[$i]->isa('Selenium::Remote::WebElement') )
|
|
|
{
|
|
|
- if ($self->{is_wd3}) {
|
|
|
+ if ($self->{is_wd3} && $self->browser_name ne 'chrome') {
|
|
|
$args[$i] = { 'element-6066-11e4-a52e-4f735466cecf' => ( $args[$i] )->{id} };
|
|
|
- $args[$i]->{ELEMENT} = $args[$i]->{id} if $self->browser_name eq 'chrome'; #XXX sometimes they prefer the latter/prior
|
|
|
} else {
|
|
|
$args[$i] = { 'ELEMENT' => ( $args[$i] )->{id} };
|
|
|
}
|
|
|
@@ -1957,9 +1956,8 @@ sub execute_script {
|
|
|
if ( Scalar::Util::blessed( $args[$i] )
|
|
|
and $args[$i]->isa('Selenium::Remote::WebElement') )
|
|
|
{
|
|
|
- if ($self->{is_wd3}) {
|
|
|
+ if ($self->{is_wd3} && $self->browser_name ne 'chrome') {
|
|
|
$args[$i] = { 'element-6066-11e4-a52e-4f735466cecf' => ( $args[$i] )->{id} };
|
|
|
- $args[$i]->{ELEMENT} = $args[$i]->{id} if $self->browser_name eq 'chrome'; #XXX sometimes they prefer the latter/prior
|
|
|
} else {
|
|
|
$args[$i] = { 'ELEMENT' => ( $args[$i] )->{id} };
|
|
|
}
|