Skip to main content

Integrating Firefox and Selenium Webdriver

I am posting this on my blog to remind me what to do if I have to integrate firefox, and selenium webdriver.

firstly, install selenium using pip.

and then, download the geckodriver that should be compatible / working with selenium webdriver.

In your code, if your python/django app is in virtualbox (headless mode),

it should be something like this:


from selenium import webdriver
from selenium.webdriver import FirefoxOptions

opts = FirefoxOptions()
browser = webdriver.Firefox(firefox_options=opts)


Popular posts from this blog

Masteral Degree in Information Technology at AMAOEd

Hi everyone! I am back. No, I just had no ideas in mind what to blog about. I am thinking about setting up new blog for movie reviews, so watch out for it.

I currently applied for the Masteral Degree in Information Technology at AMAOEd, and I got accepted. I am excited to finish this program and I hope to learn so many things from this program. I need to manage my time very well now, because I also work full-time as a web developer.

Did you also take a masteral degree? Can you share your experience? Please post your experience as comment below. I want to know more about how you manage to finish the program.

Setting up a Wordpress Site NGINX and MySQL

I am writing this blog post to remind myself how I was able to set up a wordpress site running on VirtualBox, Ubuntu 16.04, NGINX and MySQL as its database server.

Firstly, I forgot my root's password to access MySQL, so I googled for a way to reset the password.
I realized that there is a difference in resetting the password depending on the version of the mysql server.  URL:

When I was able to recover access in MySQL, I proceeded on to setup PHP 7 FPM to run with NGINX.  I already installed PHP 7 before, so I only need to setup PHP7-FPM. To set up a socket connection with NGINX, you must have a pool for every site.
Important to modify in a pool config are:
user, group, listen. the listen config must be the same socket file in absolute path in the NGINX config.
user and group (I don't know why) is a linux user and group.