You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A few weeks back before trying chromiumoxide, I have used a Python library, g1879/DrissionPage.
However, while developing with chromiumoxide, I did find some features lacking like timeouts when compared to that Python library.
Timeouts
While locating elements, specify a timeout like input_el: ChromiumElement = page.ele("tag:input", timeout=2.5) in DrissionPage
Element displayed boolean function with timeout
Specify a locator and check if the element is found within the specified duration. Otherwise, return false.
Reference: ele_exists: bool = page.wait.ele_displayed(r"xpath://a[@href='/']", timeout=1.5) in DrissionPage
Moving the mouse linearly instead of instantly within a specified duration
Requires calculating the x and y coordinate points to move the mouse in the specified duration.
The main challenge would be obtaining the current x and y coordinates of the mouse for the calculations. In my implementation, I just made a wrapper struct to store the mouse's current x and y coordinates after moving the mouse.
HTTP/HTTPS packet listener
Specify what to capture like GET responses or specific response types like HTML documents.
Allow developers to inspect the returned HTTP/HTTPS packet in the Chrome browser like the status code, etc.
Yes, I know I should just use that Python library, but it would be great to see some of these features implemented in Chromiumoxide.
The text was updated successfully, but these errors were encountered:
A few weeks back before trying chromiumoxide, I have used a Python library, g1879/DrissionPage.
However, while developing with chromiumoxide, I did find some features lacking like timeouts when compared to that Python library.
input_el: ChromiumElement = page.ele("tag:input", timeout=2.5)
in DrissionPageele_exists: bool = page.wait.ele_displayed(r"xpath://a[@href='/']", timeout=1.5)
in DrissionPageYes, I know I should just use that Python library, but it would be great to see some of these features implemented in Chromiumoxide.
The text was updated successfully, but these errors were encountered: