Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Go down
avatar
rishabhg
Posts : 2
Join date : 2013-11-11

Where does selenium script pick browser from Empty Where does selenium script pick browser from

Mon Nov 11, 2013 6:41 pm
I am using Windows and I have a perl based selenium script with the following statement :

$sel = Test::WWW::Selenium->new( host => "localhost",
                                port => 4444,
                                browser => "*chrome",
                                browser_url => $ARGV[0]/" );

So, I need the firfox browser to open up a custom profile. To do that i have configured a firefox shortcut with the -P "profilename" appended to target. Now how do i make Selenium open the firefox browser using the custom firefox shortcut. Is there an environment variable that i can set up to include the path of the custom shortcut to ensure that the browser thrown by my Selenium script uses the firefox profile that i need.

P.S. I cannot change the call to Test::WWW::Selenium->new to include the absolute URL of the browser.
avatar
janbaskt
Active particpant
Active particpant
Posts : 11
Join date : 2016-11-21
https://www.janbasktraining.com/selenium-testing-course

Where does selenium script pick browser from Empty Re: Where does selenium script pick browser from

Tue Dec 06, 2016 1:52 pm
i am facing the run the script at local host, how can i resolve it .
avatar
sureshprabhu1538
Posts : 2
Join date : 2019-01-08
Age : 30
Location : india
https://mindmajix.com/selenium-with-c-sharp-training

Where does selenium script pick browser from Empty Re: Where does selenium script pick browser from

Tue Jan 08, 2019 8:13 pm
Using selenium script with chrome and Firefox browsers are same
here syntax's for firefox browser is

Code:
my $driver = Selenium::Firefox->new;
$driver = Selenium::Firefox->new( marionette_enabled => 1 );
 
#Do stuff...
 
$driver->shutdown_binary;
 
# For Firefox 47 and older, disable marionette:
$driver = Selenium::Firefox->new( marionette_enabled => 0 );
$driver->shutdown_binary;


Profile page opener in Firefox

Code:
my $profile = Selenium::Firefox::Profile->new;
my $firefox = Selenium::Firefox->new(
    firefox_profile => $profile
);
Sponsored content

Where does selenium script pick browser from Empty Re: Where does selenium script pick browser from

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