Firefox: Changing 'class' attribute not reflected in browser
Posted: Thu Apr 14, 2016 2:16 pm
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:
I've tried also:
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
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";
Code: Select all
repo.Test.TopNavbar.Element.SetAttributeValue("class", "navbar navbar-static-top black-bg ng-scope");
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