@maestro07

Как решить проблему в python selenium?

from selenium import webdriver
import time


def do_log():
    browser = webdriver.Firefox()
    browser.get('https://esf.gov.kz:8443/esf-web/login')
    time.sleep(10)
    user = browser.find_element_by_css_selector('#login')
    user.send_keys('1234567890')
    certext = browser.find_element_by_css_selector('#certificateText')
    certext.send_keys('MIIHhTCCBW2gAwIBAgIUMh0LxBuWNiaelArRbX5xCJJWvQswDQYJKoZIhvcNAQELBQAwgc4xCzAJBgNVBAYTAktaMRUwEwYDVQQHDAzQkNCh0KLQkNCd0JAxFTATBgNVBAgMDNCQ0KHQotCQ0J3QkDFMMEoGA1UECgxD0KDQnNCaIMKr0JzQldCc0JvQldCa0JXQotCi0IbQmiDQotCV0KXQndCY0JrQkNCb0KvSmiDSmtCr0JfQnNCV0KLCuzFDMEEGA1UEAww60rDQm9Ci0KLQq9KaINCa0KPTmNCb0JDQndCU0KvQoNCj0KjQqyDQntCg0KLQkNCb0KvSmiAoUlNBKTAeFw0xNjA3MjkxMDIzMDBaFw0xNzA3MjkxMDIzMDBaMIIBTjEmMCQGA1UEAwwd0JPQntCg0JHQo9Cd0J7QkiDQnNCQ0JrQodCY0JwxGTAXBgNVBAQMENCT0J7QoNCR0KPQndCe0JIxGDAWBgNVBAUTD0lJTjg4MDExMTM1MDcwNTELMAkGA1UEBhMCS1oxFTATBgNVBAcMDNCQ0JvQnNCQ0KLQqzEVMBMGA1UECAwM0JDQm9Cc0JDQotCrMVkwVwYDVQQKDFAiQiZCIExURCIg0JbQkNCj0JDQn9Ca0JXQoNCo0IbQm9CG0JPQhiDQqNCV0JrQotCV0KPQm9CGINCh0JXQoNCG0JrQotCV0KHQotCG0JPQhjEYMBYGA1UECwwPQklOMTQwNTQwMDA2MzMxMR0wGwYDVQQqDBTQktCY0KLQkNCb0KzQldCS0JjQpzEgMB4GCSqGSIb3DQEJARYRR09SQlVOT1ZASURPQ1MuS1owggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCV0OciKEKNMYh5z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34A3iCJLLQA/xdViMhrYE8mVZK+W0eD16ZqaCqn5EZDZbHkFAh2hsbyH+zs1L7StDEZppsYJomakZrTiHg13HT5K6WFWRAQo/Q3MKPTk/nk+tGLp7qgRH/REcURsho6CuNNQ8tPcMbkflwThqx5gMQK8JSxoZT1R78OLuuMTKS1IHhp/OuNww6aYv035IrzriiCpichkxla1m2OHd+9riSmoI5so7twvmPehYhhUAXg77TVwIi8F/Bl6hbyxKJujztU4+BWfLZyBDSVlW5QJGMA3CTjz0uTlGmSyI5Yz0EpTWs9mTGiOLOj9LETYO4o6zON3pkEUPhqCQxsWUXegJDc4UncBznZ/NvfeeB9yDOY863c7zmobh7pA/xgMp9s0aEYMgn8iPMphVluM8gkBLssv0duajv9fSbmY44/MUwQusi8ZpygnAeuFMgCkc1TKEsna4EOOjXQb3FHE/ELfr/M2VP8EdsBKYiJjT52DbQhWgKEhOJbgm/QKxoQtWY54Yi3Rv374iZT3oAY1zE8wK3Vg+RZUM0FoRR11lZxIlh0AjqwxQnqH0jx/pljHOmSlG2Y8h1TGRcvMiCs7z6ta69s7n5M6XbjIc7Wa3k')
    password = browser.find_element_by_css_selector('#password')
    password.send_keys('pass')
    login = browser.find_element_by_css_selector('.green-button')
    login.click()


do_log()


File "/Users/nursultan/PycharmProjects/esf/main.py", line 6, in do_log
browser = webdriver.Firefox()

мозила 41. этот сайт работает только в этой версии и только в этом браузере.
  • Вопрос задан
  • 415 просмотров
Пригласить эксперта
Ответы на вопрос 1
hprot
@hprot
QA
Тебе нужен geckodriver. Подробнее тут
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы