def __init__(self):
        self._locators = {
            "search_box"    : by.css("[name='q']"),
            "submit"        : by.css("[name='btnK']"),
            "lucky"         : by.css("[name='btnI']"),
        }

        self._fields = ['search_box']
    def test_search_1(self):
        """Fill in the search form, press the search button, check for results
        """

        # import pdb; pdb.set_trace()

        # type "cheese" into the search field
        s(by.css('[name="q"]')) \
            .set_value('cheese')

        # click the "Google Search" button
        s(by.css('[name="btnK"]')) \
            .click()

        # check that results are shown
        s(by.css('#resultStats')) \
            .should(be.visible)
Beispiel #3
0
 def address(self):
     return s(by.css("#rsc-server"))
Beispiel #4
0
 def close(self):
     return s(by.css(".modal-content .close"))
Beispiel #5
0
 def title(self):
     return s(by.css('#rsc-content-title'))
Beispiel #6
0
 def new_location(self):
     return s(by.css("#new-location"))
Beispiel #7
0
 def cancel(self):
     return s(by.css(".modal-footer .btn[data-dismiss=modal]"))
Beispiel #8
0
 def version_info(self):
     return s(by.css("#version-info"))
Beispiel #9
0
 def title(self):
     return s(by.css("#rsc-content-title"))
Beispiel #10
0
 def title_error(self):
     return s(by.css("#rsc-deploy-error"))
Beispiel #11
0
 def publish_with_source(self):
     return s(by.css("#rsc-publish-with-source"))
Beispiel #12
0
 def add_server(self):
     return s(by.css("#rsc-add-server"))
Beispiel #13
0
 def title_error(self):
     return s(by.css('#rsc-deploy-error'))
Beispiel #14
0
 def api_key(self):
     return s(by.css("#rsc-api-key"))
Beispiel #15
0
 def rsconnect_manifest(self):
     return s(by.css("#create-manifest"))
Beispiel #16
0
 def name(self):
     return s(by.css("#rsc-servername"))
Beispiel #17
0
 def rsconnect_notification(self):
     return s(by.css("#notification_rsconnect_jupyter"))
Beispiel #18
0
 def close(self):
     return s(by.css(".modal-header .close"))
Beispiel #19
0
 def rsconnect_dropdown(self):
     return s(by.css("[title='Publish to RStudio Connect']"))
Beispiel #20
0
 def submit(self):
     return s(by.css(".modal-footer .btn-primary"))
Beispiel #21
0
 def rsconnect_publish(self):
     return s(by.css("#publish-to-connect"))
Beispiel #22
0
 def title(self):
     return s(by.css(".modal-title"))
Beispiel #23
0
 def __init__(self):
     self._locators = {
         "result_stats": by.css("#resultStats"),
     }