Display results as :

Rechercher Advanced Search

Latest topics
» Selenium WebDriver Integration
Today at 1:06 pm by azharuddin

» how to connect DB in selenium webriver
Fri Oct 06, 2017 4:09 pm by anbarasi

» How find any text in browser screen and click on it?
Thu Oct 05, 2017 2:02 pm by sandeepkommineni

» Selenium Webdriver
Tue Oct 03, 2017 1:35 pm by PiyushBiswas

» GRID setup tutorial.
Wed Sep 27, 2017 4:29 pm by johnyapp

» Drag & Drop Between Windows Using Selenium Driver
Wed Sep 27, 2017 2:10 pm by 26rondel

» Check if window is closed / verify input
Sat Sep 23, 2017 10:21 pm by brainstir

» How to work on pages with AJAX in selenium?
Mon Sep 18, 2017 6:08 pm by azharuddin

» pause test until user press a key like F2
Wed Aug 09, 2017 11:10 pm by djnforce


How to Pass parameter in selinium command in (perl )

View previous topic View next topic Go down

How to Pass parameter in selinium command in (perl )

Post by sunny on Fri Feb 12, 2010 8:50 am

Hi All,

I need help in parametering the Link text in selinium.

In my webpage to verify the link for the text i use the selinium command as below

$sel->text_is("link=Logout", "Logout");

I wanted to pass the variable to the $sel->text_is($var).

When i tried below program , its not working.

my @val = ('"link=Logout", "Logout"' ,'"link=Advanced Search", "Advanced Search"');
print "The First Value is $val[0] \n";

The print statement prints the correct format , but the sel command execution fails.

I am getting the error.

Error requesting http://localhost:4444/selenium-server/driver/?cmd=getText&1=%22
ERROR: Element "link=Logout", "Logout" not found

Can anyone please help to resolve this issue?

I tried below options, but no luck .

Can anyone please let me know what is correct way to pass parameters.



Posts : 1
Join date : 2010-02-12

Back to top Go down

Re: How to Pass parameter in selinium command in (perl )

Post by Adviser on Wed Feb 17, 2010 12:45 pm


I have one code which is written in java. You have to just change syntax into perl and understand the logic . It's simple and I am sure you will get it.

checkout this thread

Best of luck


Posts : 379
Join date : 2009-07-30
Location : India

Back to top Go down

View previous topic View next topic Back to top

Permissions in this forum:
You cannot reply to topics in this forum