Check_Selenium unknown output

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
CloudOps
Posts: 88
Joined: Mon Feb 08, 2016 12:52 am

Check_Selenium unknown output

Post by CloudOps »

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,
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

Post by scottwilkerson »

What is the contents of your simple_script.pl ?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Check_Selenium unknown output

Post by lmiltchev »

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
Be sure to check out our Knowledgebase for helpful articles and solutions!
CloudOps
Posts: 88
Joined: Mon Feb 08, 2016 12:52 am

Re: Check_Selenium unknown output

Post by CloudOps »

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.
CloudOps
Posts: 88
Joined: Mon Feb 08, 2016 12:52 am

Re: Check_Selenium unknown output

Post by CloudOps »

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");

User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Check_Selenium unknown output

Post by lmiltchev »

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!
CloudOps
Posts: 88
Joined: Mon Feb 08, 2016 12:52 am

Re: Check_Selenium unknown output

Post by CloudOps »

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.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Check_Selenium unknown output

Post by ssax »

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
CloudOps
Posts: 88
Joined: Mon Feb 08, 2016 12:52 am

Re: Check_Selenium unknown output

Post by CloudOps »

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.
User avatar
Nagios Support
Posts: 36
Joined: Thu Sep 04, 2014 12:16 pm

Re: Check_Selenium unknown output

Post by Nagios Support »

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.
Locked