Check_Selenium unknown output
Check_Selenium unknown output
Hi All,
I am getting below error while running the selenium script (Screenshot attached). when we run the script we are getting "unknown". can anyone guide me how to fix the issue.
Thanks,
I am getting below error while running the selenium script (Screenshot attached). when we run the script we are getting "unknown". can anyone guide me how to fix the issue.
Thanks,
You do not have the required permissions to view the files attached to this post.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Check_Selenium unknown output
What is the contents of your simple_script.pl ?
Re: Check_Selenium unknown output
Did you run the following command in order to clean up the format of simpletest?
Code: Select all
perl clean_selenium_script –filename=/path/to/simpletest –o=simpletestBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Check_Selenium unknown output
lmiltchev wrote:Did you run the following command in order to clean up the format of simpletest?
Code: Select all
perl clean_selenium_script –filename=/path/to/simpletest –o=simpletest
Yes i did run the clean up script before executing the code. We still had the same issue.
Re: Check_Selenium unknown output
scottwilkerson wrote:What is the contents of your simple_script.pl ?
Code: Select all
use strict;
use warnings;
use Time::HiRes qw(sleep);
use Test::WWW::Selenium;
use Test::More "no_plan";
use Test::Exception;
my $sel = Test::WWW::Selenium->new( host => "192.168.136.134",
port => 4444,
browser => "*firefox",
browser_url => "https://xxx.yyy.com/" );
$sel->open_ok("/");
$sel->click_ok("id=loginHref");
$sel->wait_for_page_to_load_ok("30000");
$sel->type_ok("id=login", "XXXXX");
$sel->type_ok("id=password", "XXXXX");
$sel->click_ok("id=go");
$sel->wait_for_page_to_load_ok("45000");
Re: Check_Selenium unknown output
Can you run the following command, and show us the output?
Code: Select all
perl -MFile::Find=find -MFile::Spec::Functions -Tlw -e 'find { wanted => sub { print canonpath $_ if /\.pm\z/ }, no_chdir => 1 }, @INC' | grep -i 'selenium\|timeperf2'Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Check_Selenium unknown output
lmiltchev wrote:Can you run the following command, and show us the output?
Code: Select all
perl -MFile::Find=find -MFile::Spec::Functions -Tlw -e 'find { wanted => sub { print canonpath $_ if /\.pm\z/ }, no_chdir => 1 }, @INC' | grep -i 'selenium\|timeperf2'
Attaching the output screenshot for the above code snippet.
You do not have the required permissions to view the files attached to this post.
Re: Check_Selenium unknown output
Do you have special characters in the password?
Try using single quotes around it, change "password" to 'password'.
Also, please attach your check_selenium.pl as well so that we can compare it with ours.
Thank you
Try using single quotes around it, change "password" to 'password'.
Also, please attach your check_selenium.pl as well so that we can compare it with ours.
Thank you
Re: Check_Selenium unknown output
ssax wrote:Do you have special characters in the password?
Try using single quotes around it, change "password" to 'password'.
Also, please attach your check_selenium.pl as well so that we can compare it with ours.
Thank you
I do have special characters in the password, and i tried to insert the password in single quotes, no luck!
Attaching the check_selenium.pl for your reference.
Thanks
You do not have the required permissions to view the files attached to this post.
- Nagios Support
- Posts: 36
- Joined: Thu Sep 04, 2014 12:16 pm
Re: Check_Selenium unknown output
We will need to do some more testing, and will get back to you within the next 24 hours. Thank you!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.