# conding:utf-8
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from time import sleep


class BrowserHandling:

    def __init__(self, url, driver_path):
        self._url = url
        self._driver_path = driver_path

    # open url path
    @property
    def url(self):
        return self._url

    @url.setter
    def url(self, url):
        self._url = url

    @property
    def driver_path(self):
        return self._driver_path

    @driver_path.setter
    def driver_path(self, driver_path):
        self._driver_path = driver_path

    @classmethod
    def control_browser(self):
        # Maximize Browser option
        options = webdriver.ChromeOptions()
        options.add_argument("--kiosk")

        driver = webdriver.Chrome(executable_path = "driver/2.3.5/chromedriver_mac")
                                  #chrome_options=options)
        #driver = webdriver.Chrome(chrome_options=options)

        driver.get(self.url)

        driver.find_element_by_id("lst-ib").send_keys("selenium")
        driver.find_element_by_id("lst-ib").send_keys(Keys.ENTER)

        driver.find_element_by_link_text("Selenium - Web Browser Automation")

        sleep(5)

        driver.close()

4247bb2618b49b034472a272a2562d376dd5c592
<mask token>


class BrowserHandling:
    <mask token>
    <mask token>

    @url.setter
    def url(self, url):
        self._url = url

    @property
    def driver_path(self):
        return self._driver_path
    <mask token>
    <mask token>

<mask token>


class BrowserHandling:

    def __init__(self, url, driver_path):
        self._url = url
        self._driver_path = driver_path

    @property
    def url(self):
        return self._url

    @url.setter
    def url(self, url):
        self._url = url

    @property
    def driver_path(self):
        return self._driver_path

    @driver_path.setter
    def driver_path(self, driver_path):
        self._driver_path = driver_path
    <mask token>

<mask token>


class BrowserHandling:

    def __init__(self, url, driver_path):
        self._url = url
        self._driver_path = driver_path

    @property
    def url(self):
        return self._url

    @url.setter
    def url(self, url):
        self._url = url

    @property
    def driver_path(self):
        return self._driver_path

    @driver_path.setter
    def driver_path(self, driver_path):
        self._driver_path = driver_path

    @classmethod
    def control_browser(self):
        options = webdriver.ChromeOptions()
        options.add_argument('--kiosk')
        driver = webdriver.Chrome(executable_path=
            'driver/2.3.5/chromedriver_mac')
        driver.get(self.url)
        driver.find_element_by_id('lst-ib').send_keys('selenium')
        driver.find_element_by_id('lst-ib').send_keys(Keys.ENTER)
        driver.find_element_by_link_text('Selenium - Web Browser Automation')
        sleep(5)
        driver.close()

from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from time import sleep


class BrowserHandling:

    def __init__(self, url, driver_path):
        self._url = url
        self._driver_path = driver_path

    @property
    def url(self):
        return self._url

    @url.setter
    def url(self, url):
        self._url = url

    @property
    def driver_path(self):
        return self._driver_path

    @driver_path.setter
    def driver_path(self, driver_path):
        self._driver_path = driver_path

    @classmethod
    def control_browser(self):
        options = webdriver.ChromeOptions()
        options.add_argument('--kiosk')
        driver = webdriver.Chrome(executable_path=
            'driver/2.3.5/chromedriver_mac')
        driver.get(self.url)
        driver.find_element_by_id('lst-ib').send_keys('selenium')
        driver.find_element_by_id('lst-ib').send_keys(Keys.ENTER)
        driver.find_element_by_link_text('Selenium - Web Browser Automation')
        sleep(5)
        driver.close()

# conding:utf-8
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from time import sleep


class BrowserHandling:

    def __init__(self, url, driver_path):
        self._url = url
        self._driver_path = driver_path

    # open url path
    @property
    def url(self):
        return self._url

    @url.setter
    def url(self, url):
        self._url = url

    @property
    def driver_path(self):
        return self._driver_path

    @driver_path.setter
    def driver_path(self, driver_path):
        self._driver_path = driver_path

    @classmethod
    def control_browser(self):
        # Maximize Browser option
        options = webdriver.ChromeOptions()
        options.add_argument("--kiosk")

        driver = webdriver.Chrome(executable_path = "driver/2.3.5/chromedriver_mac")
                                  #chrome_options=options)
        #driver = webdriver.Chrome(chrome_options=options)

        driver.get(self.url)

        driver.find_element_by_id("lst-ib").send_keys("selenium")
        driver.find_element_by_id("lst-ib").send_keys(Keys.ENTER)

        driver.find_element_by_link_text("Selenium - Web Browser Automation")

        sleep(5)

        driver.close()
