Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AlexanderGrigoryev opened this issue Aug 8, 2018 · 0 comments
Open

Comments

@AlexanderGrigoryev
Copy link

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-бит)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant