Skip to content

Commit 4bfa950

Browse files
Merge branch 'trunk' into update-renovate-json
2 parents 8463b0f + bb3053b commit 4bfa950

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

java/src/org/openqa/selenium/netty/server/RequestConverter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ protected void channelRead0(ChannelHandlerContext ctx, HttpObject msg) throws Ex
9696
length = -1;
9797
}
9898

99-
if (msg instanceof HttpContent) {
99+
if (request != null && msg instanceof HttpContent) {
100100
ByteBuf buf = ((HttpContent) msg).content().retain();
101101
int nBytes = buf.readableBytes();
102102

py/selenium/webdriver/remote/webelement.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,13 @@ def get_attribute(self, name) -> str | None:
173173
# Check if the "active" CSS class is applied to an element.
174174
is_active = "active" in target_element.get_attribute("class")
175175
"""
176+
177+
warnings.warn(
178+
"using WebElement.get_attribute() has been deprecated. Please use get_dom_attribute() instead.",
179+
DeprecationWarning,
180+
stacklevel=2,
181+
)
182+
176183
if getAttribute_js is None:
177184
_load_js()
178185
attribute_value = self.parent.execute_script(

0 commit comments

Comments
 (0)