Skip to content

[BUG] "Activate", "Deactivate" and "Is Active" still does not work on Checkboxes #90

Description

@Noordsestern

Was supposed be fixed with #64 and released in 0.9.1, but was not.


Describe the bug
None of the keywords Activate, Deactivate, and Is Active works with CheckBox elements.

Steps To Reproduce
Example code:

***Settings***
Library  PlatynUI

***Test Cases***
Activate Test
    Activate    app:Application[@Name='myApp']/Dialog[@Name='myDialog']/CheckBox[@Name='myCheckBox']

Deactivate Test
    Deactivate    app:Application[@Name='myApp']/Dialog[@Name='myDialog']/CheckBox[@Name='myCheckBox']

Check State Test
    ${state}=    Is Active    app:Application[@Name='myApp']/Dialog[@Name='myDialog']/CheckBox[@Name='myCheckBox']

Expected behavior
The CheckBox "myCheckBox" gets checked, unchecked, and its current state is returned, respectively.

Logs
Activate gives AdapterNotSupportsStrategyError: adapter not supports the org.platynui.strategies.HasToggleState strategy.

Deactivate gives AttributeError: 'CheckBox' object has no attribute 'deactivate'.

Is Active gives AttributeError: 'CheckBox' object has no attribute 'is_active'.

Desktop

  • PlatynUI Version: 0.8
  • RobotFramework Version: 7.3.1
  • OS: Debian Linux 12.11 with Gnome Desktop
  • Python Version: 3.11.2
  • Qt: 6.4

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions