IE COM. Page does not support ClassName?
Posted: 18 Jun 2018, 09:03
Hi, can it be that webpage does not supports (does not allows?) to work with Class? getElementById works fine, getElementsByTagName works fine, but getElementsByClassName does not respond at all even via F12. I have tried to get visual events, but it looks like the page does not allows to create event too. It gives me an error on that line. It's very hard to automate the page without using ClassName, because Id is not in the all fields and TagName is very unstable.
any ideas why ClassName doesn't work?
lets say HTML code is:
any ideas why ClassName doesn't work?
lets say HTML code is:
Code: Select all
<DIV class="sppContent editmode"><H2>MY TEXT HERE</H2>
<DIV class=message id=statusMessage style="BORDER-TOP: 0px; BORDER-RIGHT: 0px; BACKGROUND: #4da14d; BORDER-BOTTOM: 0px; COLOR: white; PADDING-BOTTOM: 3px; PADDING-TOP: 3px; PADDING-LEFT: 3px; BORDER-LEFT: 0px; DISPLAY: none; PADDING-RIGHT: 3px"></DIV>