Skip to content Skip to sidebar Skip to footer

Selenium Ide Python Code Export, Doesnt Work

I want to use Selenium IDE to do some easy tasks in Chrome an then export the code to python and execute there. However, when I execute the exported code in python nothing happens.

Solution 1:

If you want this to run as-is, you need to instantiate the class and kick off the functions inside. Add this at the end of the script:

testClass = TestIDETest()

testClass.setup_method("")
testClass.test_iDETest()
testClass.teardown_method("")

I've not exported from the IDE before so I can't comment on the purpose of the "method" variable that it wants (and it doesn't seem to do anything with it) - but it works as blank.

There is also some more reading here about setting up these classes to run a pyTest test.

Post a Comment for "Selenium Ide Python Code Export, Doesnt Work"