instaclick / php-webdriver

W3C and Selenium 2 webdriver "thin client" for php 5.3+ and namespaces.
Other
435 stars 62 forks source link

Update the way to click an element #121

Closed omarlopesino closed 1 year ago

omarlopesino commented 1 year ago

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 commented 1 year ago

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