[fix] #4267 - remove hard coded web-server port in ui tests (#4268)

* [fix] #4267

* Update selenium_testdriver.py
This commit is contained in:
Pawan Mehta 2017-10-17 11:59:07 +05:30 committed by Rushabh Mehta
parent 02c359d00f
commit 181d493dc2

View file

@ -19,8 +19,8 @@ import frappe
from ast import literal_eval
class TestDriver(object):
def __init__(self, port='8000'):
self.port = port
def __init__(self, port=None):
self.port = port or frappe.get_site_config().webserver_port or '8000'
chrome_options = Options()
capabilities = DesiredCapabilities.CHROME