balrog
unread,May 3, 2008, 5:13:27 PM5/3/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to selenium-users...@googlegroups.com
Okay, since there is no responses :P I had to hack it on my own.
This horrendal limit is due to Jetty FIXED non-modificable limit for max GET request.
Workaround for perl is splitting in chunks(same as somebody done with Python already)
My code ( i changed the function "type" in Selenium.pm) :
{code}
sub type {
my $self = shift;
my ($Locator, $Value) = @_;
my $MaxChars = 2000;
my $ValLen = length $Value;
if ($ValLen > $MaxChars) {
my $Pos = 0;
while ($Pos < $ValLen) {
my $Chunk = substr($Value, $Pos, $MaxChars);
$Chunk =~ s/\"/\\\"/g;
$Pos += $MaxChars;
my $JSCall = sprintf("selenium.browserbot.findElement(\"%s\").value += \"%s\";", $Locator, $Chunk);
$self->do_command("getEval", $JSCall);
sleep 2;
}
}
else {
$self->do_command("type", $Locator, $Value);
}
}
{code}