Troglodyne-Internet-Widgets / selenium-client-perl

WC3 Selenium client for Perl
6 stars 4 forks source link

FindElementFromElement seems to return parent element #4

Closed cgf1 closed 3 years ago

cgf1 commented 3 years ago

$elem = FindElement(using => 'xpath', value => 'state'); $x = FindElementFromElement(using => 'xpath', value => q{option[text()='New York'}); $x->ElementClick(); # <- Issues a click on $elem rather than selecting New York.

Changing the to_inject field in $x to reference the element-id for $x causes "New York" to be selected from the drop down.

teodesian commented 3 years ago

good find, thank you

Will address tomorrow.