Re: Unsupported HTML Tag Class
Posted: Wed Oct 17, 2018 11:27 am
Hello,
Did you find a solution to this problem? I have run into same issue. "class" attribute on "g" elements is not identified by Ranorex. It's identified by browser and properly styled according to that class though. Other attributes of the same element works fine.
Easy workaround exists, just by running this javascript and in Ranorex, instead of @class selector, use @data-class selector.
However it would still be nice to have a "hack free" solution.
Did you find a solution to this problem? I have run into same issue. "class" attribute on "g" elements is not identified by Ranorex. It's identified by browser and properly styled according to that class though. Other attributes of the same element works fine.
Easy workaround exists, just by running this javascript and in Ranorex, instead of @class selector, use @data-class selector.
Code: Select all
var elems = document.querySelectorAll('g[class]');
for(x = 0;x < elems.length;x++){
elems[x].setAttribute('data-class', elems[x].getAttribute('class'))
}