|
|
@@ -2483,7 +2483,8 @@ sub upload_file {
|
|
|
my $res = { 'command' => 'uploadFile' }; # /session/:SessionId/file
|
|
|
my $ret = $self->_execute_command( $res, $params );
|
|
|
|
|
|
- #WORKAROUND: Since this is undocumented selenium functionality, work around a bug.
|
|
|
+ #WORKAROUND: Since this is undocumented selenium functionality,
|
|
|
+ #work around a bug.
|
|
|
my ($drive, $path, $file) = File::Spec::Functions::splitpath($ret);
|
|
|
if ($file ne $filename) {
|
|
|
$ret = File::Spec::Functions::catpath($drive,$path,$filename);
|