Skip to content

Add keyword to access Selenium's getCSSValue functionality #192

Closed

Description

@emanlove

Request made on robotframework-users mailing list.

Activity

  1. aaltat commented on May 23, 2016

    @aaltat
    Contributor

    There has not been activity for this issue for long time and we are planning to close the old issues if they are not anymore valid ones. If you feel that this is still valid issue, could you send an update. If update is not received in a month, we will assume that this is not anymore an issues and we will close this issue.

    Also send update the discussion referred by Ed.

  2. surfline-jherndon commented on Mar 3, 2017

    @surfline-jherndon

    Is there a solution or workaround for this? My element does not contain a style attribute. At render time it reads the css file for its style. id=test_element@background-color does not work.

  3. aaltat commented on Mar 3, 2017

    @aaltat
    Contributor

    No there hasn't been any progress on the matter. Would you like to do something with the matter?

  4. Yi-Dun commented on Mar 20, 2017

    @Yi-Dun

    I have the same problem with element does not contain style attribute.
    But after googling, I found some workaroud with Javascript and it works in RF.
    Following is the example for returning the background color by xpath from an element.

    ${background_color}=  Execute Javascript  return window.getComputedStyle(document._getElementsByXPath("your_xpath")[0]).getPropertyValue('background-color');
    log  ${background_color}
    
  5. aaltat commented on Mar 20, 2017

    @aaltat
    Contributor

    There is work done in PR #775 but it is not yet ready. It is missing some test before it can go to the master.

    And it seems that there is duplicate issues raised, #774. I am closing this one.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions