Page 1 of 1

Firefox: Changing 'class' attribute not reflected in browser

Posted: Thu Apr 14, 2016 2:16 pm
by elena.ungureanu
Hello,

I came across a case where changing the 'class' attribute for a nav html tag in Firefox is not reflected in browser. The same 'class' update works in Chrome and IE.

More exactly in the application under test, there is a navigation bar (nav html tag) for which I'm updating the 'class' attribute as follows:

Code: Select all

repo.Test.TopNavbar.Class = "navbar navbar-static-top black-bg ng-scope";
I've tried also:

Code: Select all

repo.Test.TopNavbar.Element.SetAttributeValue("class", "navbar navbar-static-top black-bg ng-scope"); 
Although the same instructions are working in IE and Chrome in the sense that I can actually see the navigation bar looking different, in Firefox there is no visual change.

Editing the WebElement -> Class attribute using Spy works again in IE and Chrome, but not in Firefox.

The css classes I'm setting are correct because when applying it through developer toolbar in Firefox the visual change I'm expecting is there. So I don't understand why is not working as described above.

Could someone please give me a hint?

Ranorex version 5.4.2
Firefox version I've tried on: 45.0.2, 40.0.3
OS: Win 7 & 8.1

Thank you,
Elena

Re: Firefox: Changing 'class' attribute not reflected in browser

Posted: Fri Apr 15, 2016 2:34 pm
by Support Team
Hello Elena,

Thank you for reporting this issue. I was able to reproduce the behavior on our test environment. The issue was added to our internal bug-tracking system and will be analyzed by our development department. Unfortunately, I can't give you detailed information on when the issue will be fixed.

Thank you for your understanding.

Sincerely,
Johannes

Re: Firefox: Changing 'class' attribute not reflected in browser

Posted: Tue Apr 19, 2016 11:30 am
by joshmike
hi elena! did you get the solution ? if yes plz share i dont have the same but this kind of bug !
Thanks in advance

Re: Firefox: Changing 'class' attribute not reflected in browser

Posted: Wed Apr 20, 2016 11:46 am
by Support Team
Hi joshmike,

Welcome to the Ranorex Forum!

As mentioned in my previous post, the issue is currently analyzed by our development department.

In order to analyze your issue it would be great if you could describe it in detail. Furthermore, please let me know which version of Ranorex and which browser (including the exact version) is currently used.

I look forward to hearing from you.

Sincerely,
Johannes

Re: Firefox: Changing 'class' attribute not reflected in browser

Posted: Tue Mar 28, 2017 3:56 pm
by elena.ungureanu
Hello Ranorex Team,

Recently I've installed Ranorex version 6.2.1 and checked if the current issue has been fixed; but is not, can be reproduced as described in my first post.

Is there any visibility when a fix might be available?

Regards,
Elena

Re: Firefox: Changing 'class' attribute not reflected in browser

Posted: Thu Mar 30, 2017 1:23 pm
by Support Team
Hello Elena,

I’m afraid to tell you there’s currently no plan as to when this bug will be fixed. The priority of this bug fix also depends on how many other customers’ experience this issue. Nevertheless, all reported bugs and feature requests are documented in the release notes, with every new version release of Ranorex.

Thank you for your understanding.

Sincerely,
Johannes