Skip to content
This repository was archived by the owner on Feb 11, 2025. It is now read-only.
This repository was archived by the owner on Feb 11, 2025. It is now read-only.

TypeError: Object of type 'Checkbox' is not JSON serializable #20

@AlexanderGrigoryev

Description

@AlexanderGrigoryev

This code work in Google Chrome and raise TypeError in Mozilla Firefox:

from selenium.webdriver.remote.webelement import WebElement

class Clickable(WebElement):
      """ Clickable class from webium """
      pass

class Checkbox(Clickable):
      """ Checkbox class from webium """
      pass

This code work in Google Chrome and in Mozilla Firefox:

from selenium.webdriver.firefox.webelement import FirefoxWebElement as WebElement

class Clickable(WebElement):
      """ Clickable class from webium """
      pass

class Checkbox(WebElement):
      """ Checkbox class from webium """
      pass

Versions of tools:

webium 1.2.1           Google Chrome 68.0.3440.84 (64-бит)        Mozilla Firefox 61.0.1 (64-бит)
selenium 3.14.0        chromedriver 2.41 (32-бит)                 geckodriver 0.21.0 (64-бит)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions