<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Thanks in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Capture-colour-of-text/m-p/55178#M9565</link>
    <description>Thanks</description>
    <pubDate>Wed, 14 Oct 2015 15:44:00 GMT</pubDate>
    <dc:creator>Graeme__Tacon</dc:creator>
    <dc:date>2015-10-14T15:44:00Z</dc:date>
    <item>
      <title>Capture colour of text</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Capture-colour-of-text/m-p/55176#M9563</link>
      <description>I need to be able to determine the colour of text on a particular screen. The application is running under Internet Explorer, so I'm assuming it is something that will be quite easy to do, but I can't see how to do it. 

Has anyone else done this ?

Thanks

BP v4.2.35</description>
      <pubDate>Tue, 29 Sep 2015 17:13:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Capture-colour-of-text/m-p/55176#M9563</guid>
      <dc:creator>Graeme__Tacon</dc:creator>
      <dc:date>2015-09-29T17:13:00Z</dc:date>
    </item>
    <item>
      <title>If you have the 'class' or</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Capture-colour-of-text/m-p/55177#M9564</link>
      <description>If you have the 'class' or 'id' attribute on the object, you can use JavaScript from BP's 'Invoke Javascript Fragment' option on navigation stages
var myItem = document.getElementById(""ID of the object"");
myItem.innerHTML += myItem.style.color;
There's getElementsByClassName(""Class of the object""), but that returns a collection of all items with that class.
So the first line in that case (assuming there's only 1 object with that class) would be
var myItem = document.getElementsByClassName(""ID of the object"")[0];
This apends the color to the end of the text (which you can then crop off once it's in blue prism)
an element's style.color property isn't always a color with a name, so it returns an RGB value.
For example, an element set to have a color of ""Magenta"" will return ""rgb(255,0,255)"".
Hope that helps.</description>
      <pubDate>Tue, 29 Sep 2015 17:46:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Capture-colour-of-text/m-p/55177#M9564</guid>
      <dc:creator>PatrickChilders</dc:creator>
      <dc:date>2015-09-29T17:46:00Z</dc:date>
    </item>
    <item>
      <title>Thanks</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Capture-colour-of-text/m-p/55178#M9565</link>
      <description>Thanks</description>
      <pubDate>Wed, 14 Oct 2015 15:44:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Capture-colour-of-text/m-p/55178#M9565</guid>
      <dc:creator>Graeme__Tacon</dc:creator>
      <dc:date>2015-10-14T15:44:00Z</dc:date>
    </item>
  </channel>
</rss>

