Use selenium at client side

221 views
Skip to first unread message

Neha Rajput

unread,
Nov 15, 2022, 12:13:48 AM11/15/22
to Selenium Users

hi,

i want to make auto login script in python using selenium

i open browser using mydriver = webdriver.Firefox()
but after when script run it open browser in server not in client side
i want to open browser at client side
how can i open browser at client side in selenium with python
please help

ddlionx

unread,
Nov 15, 2022, 12:59:25 AM11/15/22
to seleniu...@googlegroups.com
What do define as being ‘server’ side and ‘client’ side? 

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/81b80e1b-c917-45ed-8cf4-48252ba4fcf1n%40googlegroups.com.

Neha Rajput

unread,
Nov 15, 2022, 1:05:22 AM11/15/22
to seleniu...@googlegroups.com
When we execute the python selenium script on the local browser it will open on my system(local machine), But when we place this code on any server i need when code is executed then the browser will also open on my system.

This means ,the PYTHON  script that placed on server wherever (on any machine)  browser will open on that same machine.


You received this message because you are subscribed to a topic in the Google Groups "Selenium Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/selenium-users/G4W07edmiQo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAJPyTs28t7_A%3DOaDWvpzmzqgF5E4td0kY42197HH2%3DSh9_HQ9A%40mail.gmail.com.

SuperKevy

unread,
Nov 15, 2022, 12:52:53 PM11/15/22
to Selenium Users

David

unread,
Nov 15, 2022, 1:41:00 PM11/15/22
to Selenium Users
Why do you want script on server to launch browser on your local machine? What's the use case? Supporting such is possible, but becomes a complicated setup because you end up having to handle networking (e.g. firewall rules, etc.) between the client & server, and you would also have to run a standalone RemoteWebDriver server instance (or Selenium grid) on your local machine to receive the browser requests from the server (in this setup, your local machine acts as server, and the server running the script acts as client), your script code also would have to use RemoteWebDriver and not a regular local browser driver, and you'd have to point the RemoteWebDriver/grid URL to your local machine's hostname or IP.

A simpler setup, keeping the script unchanged could be that you leave the script hosted on your local machine, and you place a shortcut/alias script on the servers, and all the script on the server does is run something like PSExec or winexe (or SSH), to execute the script on your local machine remotely from the server using those tools/commands. This way, you can trigger from server but it all runs local on your machine. This still requires you set up network access between client & server (e.g. server able to PSExec/winexe or SSH to your local machine).

Reply all
Reply to author
Forward
0 new messages