मैं सेलेनियम के लिए नया हूं। मुझे सेलेनियम वेबड्राइवर का उपयोग करते समय कुछ समस्याएं मिल रही हैं।java.lang.NoSuchMethodError: com.google.common.io.Closeables.closeQuietly (Ljava/io/Closeable;) V
मैं www.filpkart.com
मेरे कोड
package com.screen;
import org.openqa.selenium.*;
import org.openqa.selenium.firefox.FirefoxDriver;
public class HTMLParseExample {
public static void main(String[] args) {
WebDriver driver = new FirefoxDriver();
//Launch website
driver.get("http://www.flipkart.com");
driver.close();
}
}
मैं इस त्रुटि का उल्लेख नीचे का सामना करना पड़ रहा है जैसे सेलेनियम WebDriver का उपयोग कर वेबसाइट खोलना चाहते हैं।
Exception in thread "main" java.lang.NoSuchMethodError: com.google.common.io.Closeables.closeQuietly(Ljava/io/Closeable;)V
at org.openqa.selenium.firefox.internal.ClasspathExtension.writeTo(ClasspathExtension.java:60)
at org.openqa.selenium.firefox.FirefoxProfile.installExtensions(FirefoxProfile.java:504)
at org.openqa.selenium.firefox.FirefoxProfile.layoutOnDisk(FirefoxProfile.java:482)
at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:76)
at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:142)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:80)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:121)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:77)
at com.screen.HTMLParseExample.main(HTMLParseExample.java:15)
अग्रिम में धन्यवाद मेरी मदद करें।
लगता है वहाँ कुछ समस्या है, तो आप एक गैर मौजूदा विधि कॉल कर रहे है, इस सवाल का चेक http://stackoverflow.com/questions/22116299/ हल करने-nosuchmethoderror-अपवाद-फेंकने-उपयोग-प्रतिबिंब –