क्या कोई मुझे बता सकता है कि जावा का उपयोग करके मेरे ग्राहक फ़ायरफ़ॉक्स प्रोफाइल के लिए प्लगइन्स को कैसे अक्षम किया जाए? मुझे कुछ साइटें मिलती हैं जो एड-ऑन जोड़ने के लिए दिखाती हैं लेकिन अक्षम प्लगइन के बारे में कुछ नहीं।सेलेनियम फ़ायरफ़ॉक्स प्रोफाइल में प्लगइन अक्षम करें
मेरे फ़ायरफ़ॉक्स प्रोफाइल:
FirefoxProfile firefoxProfile = new FirefoxProfile();
firefoxProfile.setAcceptUntrustedCertificates(true);
firefoxProfile.setAssumeUntrustedCertificateIssuer(false);
firefoxProfile.setPreference("browser.download.folderList",2);
firefoxProfile.setPreference("browser.download.manager.showWhenStarting",false);
firefoxProfile.setPreference("browser.download.dir",reportFolder);
firefoxProfile.setPreference("browser.helperApps.neverAsk.saveToDisk","text/csv,application/pdf,application/csv,application/vnd.ms-excel");
firefoxProfile.setPreference("browser.download.manager.showAlertOnComplete",false); firefoxProfile.setPreference("browser.download.manager.showAlertOnComplete",false);
firefoxProfile.setPreference("browser.download.manager.showWhenStartinge",false);
firefoxProfile.setPreference("browser.download.panel.shown",false);
firefoxProfile.setPreference("browser.download.useToolkitUI",true);
firefoxProfile.setPreference("pdfjs.disabled", true);
firefoxProfile.setPreference("pdfjs.firstRun", false);
driver = new FirefoxDriver(firefoxProfile);
समस्या यह कुछ प्लग सक्षम किया गया है डिफ़ॉल्ट रूप से है। एडोब एक्रोबैट, गूगल अपडेट, जावा, माइक्रोसॉफ्ट ऑफिस, फ्लैश, शॉकवेव डायरेक्टर और सिल्वरलाइट के लिए।
मुझे इनमें से कुछ को अक्षम करने की आवश्यकता है क्योंकि वे मेरे परीक्षणों को गड़बड़ कर रहे हैं।
हाय फरलान मैंने अपने कोड के साथ प्रश्न अपडेट किया है। दुर्भाग्य से बनाई गई रिक्त प्रोफ़ाइल में कुछ प्लगइन्स सक्षम हैं। –
क्या आप निर्दिष्ट कर सकते हैं कि आपके परीक्षणों में कौन सा गड़बड़ कर रहे हैं? – Farlan
एक्रोबैट ऐसा लगता है कि उनमें से अधिकतर –