# Deprecated API

## Contents

- Classes
- Methods

- Deprecated Classes
  Class
  Description
  com.xceptance.xlt.api.report.external.NamedData
  As of XLT 4.6.0: This class is not used at all in the XLT API and will therefore be removed soon.
  org.htmlunit.html.DomNode.DescendantElementsIterator
  as of version 4.7.0; use `DomNode.DescendantDomNodesIterator`, `DomNode.DescendantDomElementsIterator`, or `DomNode.DescendantHtmlElementsIterator` instead.

- Deprecated Methods
  Method
  Description
  com.xceptance.xlt.api.actions.AbstractHtmlPageAction.loadPageByFormClick(HtmlForm, String, boolean)
  As of XLT 4.9.0, use `AbstractHtmlPageAction.loadPageByFormClick(HtmlForm, String)` instead.
  com.xceptance.xlt.api.actions.AbstractHtmlPageAction.loadPageByFormClick(HtmlForm, String, boolean, long)
  As of XLT 4.9.0, use `AbstractHtmlPageAction.loadPageByFormClick(HtmlForm, String, long)` instead.
  com.xceptance.xlt.api.data.GeneralDataProvider.getEmail(String, boolean)
  since 4.3.0, replaced by `GeneralDataProvider.getEmail(String)` because parameter 'removeWhitespace' is not evaluated at all.
  com.xceptance.xlt.api.engine.Session.getWebDriverActionName()
  As of XLT 4.6.0, use `Session.getCurrentActionName()` instead.
  com.xceptance.xlt.api.engine.Session.setWebDriverActionName(String)
  As of XLT 4.6.0, use `Session.startAction(String)` instead.
  com.xceptance.xlt.api.tests.AbstractTestCase.setTestName()
  will be removed in XLT 4.6. Test case name will be set via constructor.
  org.htmlunit.html.HtmlForm.getElements()
  as of version 4.4.0; use `HtmlForm.getFormElements()`, `HtmlForm.getElementsJS()` instead
  org.htmlunit.util.EncodingSniffer.sniffEncoding(List<NameValuePair>, InputStream)
  as of version 4.0.0; depending on the content use `EncodingSniffer.sniffEncodingFromMetaTag(InputStream)`, `EncodingSniffer.sniffEncodingFromXmlDeclaration(InputStream)`, or `EncodingSniffer.sniffEncodingFromCssDeclaration(InputStream)` instead
  org.htmlunit.util.EncodingSniffer.sniffEncodingFromHttpHeaders(List<NameValuePair>)
  as of version 4.0.0; method will be removed without replacement
  org.htmlunit.util.EncodingSniffer.sniffHtmlEncoding(List<NameValuePair>, InputStream)
  as of version 4.0.0; depending on the content use `EncodingSniffer.sniffEncodingFromMetaTag(InputStream)`, `EncodingSniffer.sniffEncodingFromXmlDeclaration(InputStream)`, or `EncodingSniffer.sniffEncodingFromCssDeclaration(InputStream)` instead
  org.htmlunit.util.EncodingSniffer.sniffUnknownContentTypeEncoding(List<NameValuePair>, InputStream)
  as of version 4.0.0; depending on the content use `EncodingSniffer.sniffEncodingFromMetaTag(InputStream)`, `EncodingSniffer.sniffEncodingFromXmlDeclaration(InputStream)`, or `EncodingSniffer.sniffEncodingFromCssDeclaration(InputStream)` instead
  org.htmlunit.util.EncodingSniffer.sniffXmlEncoding(List<NameValuePair>, InputStream)
  as of version 4.0.0; depending on the content use `EncodingSniffer.sniffEncodingFromMetaTag(InputStream)`, `EncodingSniffer.sniffEncodingFromXmlDeclaration(InputStream)`, or `EncodingSniffer.sniffEncodingFromCssDeclaration(InputStream)` instead
  org.htmlunit.util.EncodingSniffer.translateEncodingLabel(Charset)
  as of version 4.0.0; method will be removed without replacement
  org.htmlunit.util.WebResponseWrapper.defaultCharsetUtf8()
  as of version 4.0.0; use `WebRequest.setDefaultResponseContentCharset(Charset)` instead
  org.htmlunit.util.WebResponseWrapper.getContentCharsetOrNull()
  as of version 4.0.0; use `WebResponseWrapper.getContentCharset()` instead
  org.htmlunit.WebClient.isLoadStaticContent()
  org.htmlunit.WebRequest.setRefererlHeader(URL)
  as of version 4.5.0; use `WebRequest.setRefererHeader(URL)` instead
  org.htmlunit.WebResponse.defaultCharsetUtf8()
  as of version 4.0.0; use `WebRequest.setDefaultResponseContentCharset(Charset)` instead
  org.htmlunit.WebResponse.getContentCharsetOrNull()
  as of version 4.0.0; use `WebResponse.getContentCharset()` instead
  org.htmlunit.WebResponse.getProtocolVersion()
  For internal use only.
  org.htmlunit.WebResponse.getRawSize()
  For internal use only. Will be removed in next release.
  org.htmlunit.WebResponse.setProtocolVersion(String)
  For internal use only.
  org.htmlunit.WebResponse.setRawSize(int)
  For internal use only. Will be removed in next release.