瀏覽代碼

Fix a problem with data being sent as integers;
https://github.com/aivaturi/Selenium-Remote-Driver/issues/52

Charles Howes 12 年之前
父節點
當前提交
338872f76d
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      lib/Selenium/Remote/WebElement.pm

+ 1 - 0
lib/Selenium/Remote/WebElement.pm

@@ -100,6 +100,7 @@ sub submit {
 sub send_keys {
     my ($self, @strings) = @_;
     my $res = { 'command' => 'sendKeysToElement', 'id' => $self->{id} };
+    map { $_ .= "" } @strings;
     my $params = {
         'value' => \@strings,
     };