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