selene: Pycharm + pytest + selene = INTERNALERROR
Hi all! I get an internal error when i start test via Pycharm 2018.2 and pytest-3.10.0 The first test is success but the second one causes the error. When i do the same via command line - no errors
code for reproduce:
from selene.api import *
def setup_function(module):
driver = webdriver.Chrome()
browser.set_driver(driver)
def teardown_function(module):
browser.quit()
def test_selene():
browser.open_url('http://ya.ru')
s('#text').set('Python Selene try 1')
s('[type="submit"]').click()
def test_selene_2():
browser.open_url('http://ya.ru')
s('#text').set('Python Selene try 2')
s('[type="submit"]').click()
Traceback in attached file traceback.txt
Same issue: https://automated-testing.info/t/pycharm-pytest-selene-internalerror/21791/1 http://software-testing.ru/forum/index.php?/topic/36059-python-selene-pytest-pycharm-internalerror-pri-zapuske-testov/
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 4
- Comments: 29 (4 by maintainers)
@maxim-zaitsev @KozhevnikovSergey JFYI в PyCharm 2019.1.1 JetBrains исправили эту проблему.
I think this is a compatibility bug of the current version of selene with the latest version of PyCharm. PyCharm 2015 did not cause the error.
а все потому что это проблема не Selene… вот это новость! =)
Ура! Обновился до 2019.1.1. Проблема ушла. Все спасибо за участие.
As i wrote before: When i do the same via command line - no errors
I thought so too. But the same code without selene does not cause the error: