Class SeleniumDocumentLoader
java.lang.Object
dev.langchain4j.data.document.loader.selenium.SeleniumDocumentLoader
Utility class for loading web documents using Selenium.
Returns a
Document object containing the content of the web page.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()dev.langchain4j.data.document.DocumentLoads a document from the specified URL.
-
Method Details
-
load
public dev.langchain4j.data.document.Document load(String url, dev.langchain4j.data.document.DocumentParser documentParser) Loads a document from the specified URL.- Parameters:
url- The URL of the file.documentParser- The parser to be used for parsing text from the URL.- Returns:
- document
-
builder
-