How Selenium works(elements status/5:IE)

2020-07-29

Overview

Test page

Internet Explorer

11.973.17763.0
Version 11.973.17763.0

Button

Normal

In IE, the click method does not work simply.
The first click sets the focus to the control.

Get forcus
First click

The second click raises the click event.

Click event occurred
Second click

Inactive(disabled)

No response.

No response
No response

Inactive(pointer-events:none)

Exception occurred
Not clickable manually.

Exception occurred
Exception occurred
ElementClickInterceptedExceptionMessage: Element not clickable at point (0,0). Other element would receive the click: 
<traceback object at 0x000002A87C6CF3C8>

Read-only(readonly)

The second click will cause the event.

Click event occurred
Click event occurred

Hidden(display:none)

Exception occurred

Exception occurred
Exception occurred
ElementNotInteractableExceptionMessage: Element is not displayed
<traceback object at 0x000002A87C6A07C8>

Hidden(visibility:hidden)

Exception occurred

Exception occurred
Exception occurred

Result

Button click is_displayed is_enabled readonly
normal OK True True None
disabled NG True False None
pointer-events:none Ex True True None
readonly OK True True true
display:none Ex False True None
visibility:hidden Ex False True None

Link

Normal

The second click will cause the event.

Click event occurred
Click event occurred

Inactive(disabled)

A click event does not occur. It is different from other browsers.
Does it mean that “disabled" is working?

No response
No response

But “is_enabled()" is “True"

get attribute
displayed:True / enabled:True / readonly:None

Inactive(pointer-events:none)

Exception occurred

Exception occurred
Exception occurred

It is clickable manually.

Click event occurred
Clickable manually.

Read-only(readonly)

The second click will cause the event.

Click event occurred
Click event occurred

Hidden(display:none)

Exception occurred
Exception occurred

Hidden(visibility:hidden)

Exception occurred
Exception occurred

Result

Link click is_displayed is_enabled readonly note
normal OK True True None
disabled NG True True None
pointer-events:none Ex* True True None *Clickable manually
readonly OK True True true
display:none Ex False True None
visibility:hidden Ex False True None

Text

Normal

send_keys
send_keys

Inactive(disabled)

Exception occurred

Exception occurred
Exception occurred
ElementNotInteractableExceptionMessage: Element cannot be interacted with via the keyboard because it is not enabled
<traceback object at 0x0000020D872B6688>

Inactive(pointer-events:none)

It is enterable with Selenium, and not enterable manually.

send_keys
send_keys

Read-only(readonly)

It is not enterable.

No response
No response

Hidden(display:none)

Exception occurred

Exception occurred
Exception occurred
ElementNotInteractableExceptionMessage: Element cannot be interacted with via the keyboard because it is not displayed
<traceback object at 0x0000020D85C28948>

Hidden(visibility:hidden)

Exception occurred
Exception occurred

Result

Text send_keys get_value is_displayed is_enabled readonly
normal OK OK True True None
disabled Ex OK True False None
pointer-events:none OK OK True True None
readonly NG OK True True true
display:none Ex OK False True None
visibility:hidden Ex OK False True None

Select

Inactive(disabled)

It is not selectable.

No response
No response

Inactive(pointer-events:none)

“option2" is selected.

option2
option2

Read-only(readonly)

option2
option2

Hidden(display:none)

Exception occurred

Exception occurred
Exception occurred
JavascriptExceptionMessage: Cannot click on option element. Executing JavaScript click function returned an unexpected error, but no error could be returned from Internet Explorer's JavaScript engine.
<traceback object at 0x0000020D85C6A808>

An empty character is returned.
The item specified with <option> becomes an empty character.

option item
option1~3:empty, option4:index out of range

Hidden(visibility:hidden)

Exception occurred
Exception occurred

Result

Select select item get selected item is_displayed is_enabled readonly note
noraml OK OK True True None
disabled NG OK True False None
pointer-events:none OK OK True True None
readonly OK OK True True true
display:none Ex NG* False True None *Empty is returned
visibility:hidden Ex NG* False True None *Empty is returned

Select(option)

Inactive(disabled)

Not selectable.

No response
No response

Inactive(pointer-events:none)

It is selectable.

option2
option2

It is selectable manually.

option2
option2

Hidden(display:none)

It is selectable.

option2
option2

It is selectable manually. “option2" is displayed.

option2 is displayed.
option2 is displayed.

Hidden(visibility:hidden)

It is selectable.

option2
option2

“option2" is hidden, but it is selectable manually.

option2 is hidden.
option2 is hidden
option2
option2

Result

Select
(option)
select item get selected item is_displayed is_enabled readonly note
normal OK OK True True None
disabled NG OK True False None
pointer-events:none OK* OK True True None *selectable manually
readonly OK OK True True true
display:none OK* OK True True None *selectable manually
visibility:hidden OK* OK True True None *selectable manually

Radio

It was the same result as Chrome, Firefox and Edge.

Result

Radio click button click label get value is_displayed is_enabled readonly
normal OK OK OK True True None
disabled NG NG OK True False None
pointer-events:none Ex OK OK True True None
readonly OK OK OK True True true
display:none Ex OK OK False True None
visibility:hidden Ex OK OK False True None

CheckBox

It was the same result as Chrome, Firefox and Edge.

Result
CheckBox click button click label get value is_displayed is_enabled readonly
normal OK OK OK True True None
disabled NG NG OK True False None
pointer-events:none Ex OK OK True True None
readonly OK OK OK True True true
display:none Ex OK OK False True None
visibility:hidden Ex OK OK False True None