Skip to content

Conversation

@omarlopesino
Copy link

Problem description

When the click method is executed on a checkbox in Selenium 4.8.0, the following error appears:

non-positive contentLength: 0

Steps to reproduce

Call Webdriver\Element::click method on a checkbox with this library, using Selenium 4.8.0.

Solution

Send the :id attribute in the POST request. This solution is based in how this is done at php-webdriver/webdriver

@robocoder
Copy link
Member

This PR actually breaks click. This library is not a fork of php-webdriver/webdriver, and specifically doesn't use the :id placeholder.

@robocoder robocoder closed this Feb 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants