teodesian / Selenium-Remote-Driver

Perl Bindings to the Selenium Webdriver server
174 stars 90 forks source link

switch_to_frame now gives 'id' can not be string error #445

Closed Stringer26 closed 4 years ago

Stringer26 commented 4 years ago

On a recent chrome (80.0.3987.149) and perl v5.30.2 the command $driver->switch_to_frame(..string..) now gives an error:

Error while executing command: invalid argument: invalid argument: 'id' can not be string
  (Session info: chrome=80.0.3987.149) at /usr/local/share/perl5/5.30/Selenium/Remote/Driver.pm line 403.
 at /usr/local/share/perl5/5.30/Selenium/Remote/Driver.pm line 353.

On another computer with an older version of perl v5.16.3 and chrome (80.0.3987.122) everything is fine.

Stringer26 commented 4 years ago

A work-around is to do $driver->switch_to_frame($driver->find_element_by_id(..string..)) This works fine but the documentation for switch_to_frame still needs fixing.

teodesian commented 4 years ago

So, we should note that chrome as usual breaks the standard? They do that at random every other build.