from selenium.webdriver.common.by import By
from Pages.GoogleResultPage import GoogleResultPage
from Pages.Page import Page

class GoogleMainPage(Page):
    
    #SEARCH_INPUT = (By.NAME, 'q')
    SEARCH_INPUT = "//input[@name='q']"
    SEARCH_BTN = "//input[@name='btnK']"
       
    def __init__(self, driver):
        super().__init__(driver)
    
    def search_text(self, text):
        self.find_element(self.SEARCH_INPUT).send_keys(text)
        self.find_element(self.SEARCH_BTN).submit()
        return GoogleResultPage(self.driver)
e94922ca1837a949efbd7084916ea5567f0fc2f9
<mask token>


class GoogleMainPage(Page):
    <mask token>
    <mask token>

    def __init__(self, driver):
        super().__init__(driver)
    <mask token>

<mask token>


class GoogleMainPage(Page):
    <mask token>
    <mask token>

    def __init__(self, driver):
        super().__init__(driver)

    def search_text(self, text):
        self.find_element(self.SEARCH_INPUT).send_keys(text)
        self.find_element(self.SEARCH_BTN).submit()
        return GoogleResultPage(self.driver)

<mask token>


class GoogleMainPage(Page):
    SEARCH_INPUT = "//input[@name='q']"
    SEARCH_BTN = "//input[@name='btnK']"

    def __init__(self, driver):
        super().__init__(driver)

    def search_text(self, text):
        self.find_element(self.SEARCH_INPUT).send_keys(text)
        self.find_element(self.SEARCH_BTN).submit()
        return GoogleResultPage(self.driver)

from selenium.webdriver.common.by import By
from Pages.GoogleResultPage import GoogleResultPage
from Pages.Page import Page


class GoogleMainPage(Page):
    SEARCH_INPUT = "//input[@name='q']"
    SEARCH_BTN = "//input[@name='btnK']"

    def __init__(self, driver):
        super().__init__(driver)

    def search_text(self, text):
        self.find_element(self.SEARCH_INPUT).send_keys(text)
        self.find_element(self.SEARCH_BTN).submit()
        return GoogleResultPage(self.driver)

from selenium.webdriver.common.by import By
from Pages.GoogleResultPage import GoogleResultPage
from Pages.Page import Page

class GoogleMainPage(Page):
    
    #SEARCH_INPUT = (By.NAME, 'q')
    SEARCH_INPUT = "//input[@name='q']"
    SEARCH_BTN = "//input[@name='btnK']"
       
    def __init__(self, driver):
        super().__init__(driver)
    
    def search_text(self, text):
        self.find_element(self.SEARCH_INPUT).send_keys(text)
        self.find_element(self.SEARCH_BTN).submit()
        return GoogleResultPage(self.driver)