Cannot execute custom Selenium assert function from user-extensions.js file, when running Python RC against Selenium server
问题 I'm trying to export a Selenium script to Python from the Selenium IDE. I am using a few user-extension.js functions though (which are working in Selenium IDE). After exporting to Python, the generated script looks like this: from selenium import selenium import unittest, time, re class new_selenium_test(unittest.TestCase): def setUp(self): self.verificationErrors = [] self.selenium = selenium("localhost", 4444, "*chrome", "http://localhost/") self.selenium.start() def test_selenium_assert