पर ड्राइवर सेवा शुरू नहीं कर सकता है मैंने कुछ सेलेनियम परीक्षण बनाए हैं जो स्थानीयहोस्ट पर बहुत बढ़िया काम करते हैं, लेकिन जब मैं एप्लिकेशन पर एप्लिकेशन को तैनात करता हूं, तो मुझे अपवाद मिल रहा है।ऐप्पलबर पर सेलेनियम इंटरनेट एक्सप्लोरर ड्रायवर: स्थानीयहोस्ट
इस कोड InternetExplorerDriver का एक नया उदाहरण बनाने पर अपवाद फेंकता है:
OpenQA.Selenium.WebDriverException: Cannot start the driver service on http://localhost:35187/
at OpenQA.Selenium.DriverService.Start()
at OpenQA.Selenium.Remote.DriverServiceCommandExecutor.Execute(Command commandToExecute)
at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
at OpenQA.Selenium.Remote.RemoteWebDriver.StartSession(ICapabilities desiredCapabilities)
at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(ICommandExecutor commandExecutor, ICapabilities desiredCapabilities)
at OpenQA.Selenium.IE.InternetExplorerDriver..ctor(String internetExplorerDriverServerDirectory, InternetExplorerOptions options)
...
आप कृपया सलाह सका क्या कारण हो सकता है और वहाँ किसी भी तरह से है:
var options = new InternetExplorerOptions();
options.IntroduceInstabilityByIgnoringProtectedModeSettings = true;
Driver = new InternetExplorerDriver(DriverDirectory, options);
यहाँ अपवाद नहीं है इसे हल करने के लिए?
क्या आप IE ExplorerDriver का संस्करण जोड़ सकते हैं जिसका उपयोग आप कर रहे हैं और सेलेनियम कॉन्फ़िगरेशन भी कर सकते हैं। मुझे डर है कि यह पुराने सेलेनियम कॉन्फ़िगरेशन या सिस्टम कॉन्फ़िगरेशन समस्या के कारण हो सकता है-फ़ायरवॉल की तरह कुछ। – demouser123