How to execute python selenium script in html using brython ?

133 views
Skip to first unread message

karuna bhagat

unread,
Nov 20, 2015, 8:01:03 AM11/20/15
to brython
Hello,

I have created one python selenium script and tyr to execute it on html using brython. It gives me error "ImportError: No module named selenium "
and I have directly execute python code using terminal it executes properly. Please give me some suggestion.

Christophe Bal

unread,
Nov 20, 2015, 8:04:25 AM11/20/15
to bry...@googlegroups.com

Brython is not Python. Brython uses the Python grammar but in backstage this is JS that does the job. This is Why Selenium can't be used with Brython.

--
You received this message because you are subscribed to the Google Groups "brython" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brython+u...@googlegroups.com.
To post to this group, send email to bry...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/brython/7e5f627e-662e-4431-bc8a-27ba51939b5c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Kiko

unread,
Nov 20, 2015, 8:16:03 AM11/20/15
to bry...@googlegroups.com
Brython is to run Python syntax on the client side of an internet browser.

Selenium is to run a browser itself.

So, you could use Selenium from the command line to test a Brython app running in the browser.

P.D.: I've never used Selenium but I think it is used that way.

Christophe Bal

unread,
Nov 20, 2015, 8:18:26 AM11/20/15
to bry...@googlegroups.com

Selenium uses its own browser.

karuna bhagat

unread,
Nov 23, 2015, 2:35:45 AM11/23/15
to brython
Thank you all for your valuable reply..

karuna bhagat

unread,
Nov 23, 2015, 4:29:42 AM11/23/15
to brython

Hello All,

can you suggest me any other way that executes the python selenium script using html.
Thanks in advance.

Joao S. O. Bueno

unread,
Nov 23, 2015, 6:49:11 AM11/23/15
to bry...@googlegroups.com
Just check the normal Selenium documentation - maybe there is a
tutorial for it's usage.

http://selenium-python.readthedocs.org/getting-started.html could be a
nice start.
> --
> You received this message because you are subscribed to the Google Groups
> "brython" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to brython+u...@googlegroups.com.
> To post to this group, send email to bry...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/brython/e2521151-ee08-4195-9c07-686257d260cb%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages