|
@@ -1226,7 +1226,7 @@ sub find_child_element {
|
|
|
my $using = ( defined $method ) ? $method : 'xpath';
|
|
my $using = ( defined $method ) ? $method : 'xpath';
|
|
|
if (exists FINDERS->{$using}) {
|
|
if (exists FINDERS->{$using}) {
|
|
|
my $res = { 'command' => 'findChildElement', 'id' => $elem->{id} };
|
|
my $res = { 'command' => 'findChildElement', 'id' => $elem->{id} };
|
|
|
- my $params = { 'using' => $using, 'value' => $query };
|
|
|
|
|
|
|
+ my $params = { 'using' => FINDERS->{$using}, 'value' => $query };
|
|
|
my $ret_data = eval {$self->_execute_command( $res, $params );};
|
|
my $ret_data = eval {$self->_execute_command( $res, $params );};
|
|
|
if($@) {
|
|
if($@) {
|
|
|
if($@ =~ /(An element could not be located on the page using the given search parameters)/) {
|
|
if($@ =~ /(An element could not be located on the page using the given search parameters)/) {
|
|
@@ -1282,7 +1282,7 @@ sub find_child_elements {
|
|
|
my $using = ( defined $method ) ? $method : 'xpath';
|
|
my $using = ( defined $method ) ? $method : 'xpath';
|
|
|
if (exists FINDERS->{$using}) {
|
|
if (exists FINDERS->{$using}) {
|
|
|
my $res = { 'command' => 'findChildElements', 'id' => $elem->{id} };
|
|
my $res = { 'command' => 'findChildElements', 'id' => $elem->{id} };
|
|
|
- my $params = { 'using' => $using, 'value' => $query };
|
|
|
|
|
|
|
+ my $params = { 'using' => FINDERS->{$using}, 'value' => $query };
|
|
|
my $ret_data = eval {$self->_execute_command( $res, $params );};
|
|
my $ret_data = eval {$self->_execute_command( $res, $params );};
|
|
|
if($@) {
|
|
if($@) {
|
|
|
if($@ =~ /(An element could not be located on the page using the given search parameters)/) {
|
|
if($@ =~ /(An element could not be located on the page using the given search parameters)/) {
|