def CreateWebDriverBackend(self, platform_backend, finder_options):
   assert webdriver
   def DriverCreator():
     ie_driver_exe = support_binaries.FindPath(
         'IEDriverServer_%s' % self._architecture,
         'AMD64',
         'win')
     return webdriver.Ie(executable_path=ie_driver_exe)
   return webdriver_ie_backend.WebDriverIEBackend(
       platform_backend, DriverCreator, finder_options.browser_options)
示例#2
0
    def CreateWebDriverBackend(self, platform_backend):
        assert webdriver

        def DriverCreator():
            ie_driver_exe = os.path.join(
                util.GetTelemetryDir(), 'bin',
                'IEDriverServer_%s.exe' % self._architecture)
            cloud_storage.GetIfChanged(cloud_storage.PUBLIC_BUCKET,
                                       ie_driver_exe)
            return webdriver.Ie(executable_path=ie_driver_exe)

        return webdriver_ie_backend.WebDriverIEBackend(
            platform_backend, DriverCreator,
            self.finder_options.browser_options)