How Selenium works(elements status/5:IE)
Internet Explorer
![11.973.17763.0](https://selenium-world.net/wp-content/uploads/2020/07/ie_version.png)
Button
Normal
In IE, the click method does not work simply.
The first click sets the focus to the control.
![Get forcus](https://selenium-world.net/wp-content/uploads/2020/07/ie_submit1_c1-1024x616.png)
The second click raises the click event.
![Click event occurred](https://selenium-world.net/wp-content/uploads/2020/07/ie_submit1_c2-1024x616.png)
Inactive(disabled)
No response.
![No response](https://selenium-world.net/wp-content/uploads/2020/07/ie_submit2_c1-1024x616.png)
Inactive(pointer-events:none)
Exception occurred
Not clickable manually.
![Exception occurred](https://selenium-world.net/wp-content/uploads/2020/07/ie_submit3_c1-1024x616.png)
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](https://selenium-world.net/wp-content/uploads/2020/07/ie_submit4_c1-1024x616.png)
Hidden(display:none)
Exception occurred
![Exception occurred](https://selenium-world.net/wp-content/uploads/2020/07/ie_submit5_c1-1024x616.png)
ElementNotInteractableExceptionMessage: Element is not displayed
<traceback object at 0x000002A87C6A07C8>
Hidden(visibility:hidden)
Exception occurred
![Exception occurred](https://selenium-world.net/wp-content/uploads/2020/07/ie_submit6_c1-1024x616.png)
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](https://selenium-world.net/wp-content/uploads/2020/07/ie_link1_c1-1024x616.png)
Inactive(disabled)
A click event does not occur. It is different from other browsers.
Does it mean that “disabled" is working?
![No response](https://selenium-world.net/wp-content/uploads/2020/07/ie_link2_c1-1024x616.png)
But “is_enabled()" is “True"
![get attribute](https://selenium-world.net/wp-content/uploads/2020/07/ie_link2_e1-1024x616.png)
Inactive(pointer-events:none)
Exception occurred
![Exception occurred](https://selenium-world.net/wp-content/uploads/2020/07/ie_link3_c1-1024x616.png)
It is clickable manually.
![Click event occurred](https://selenium-world.net/wp-content/uploads/2020/07/ie_link3_c2-1024x616.png)
Read-only(readonly)
The second click will cause the event.
![Click event occurred](https://selenium-world.net/wp-content/uploads/2020/07/ie_link4_c1-1024x616.png)
Hidden(display:none)
![Exception occurred](https://selenium-world.net/wp-content/uploads/2020/07/ie_link5_c1-1024x616.png)
Hidden(visibility:hidden)
![Exception occurred](https://selenium-world.net/wp-content/uploads/2020/07/ie_link6_c1-1024x616.png)
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](https://selenium-world.net/wp-content/uploads/2020/07/ie_text1_c1-1024x616.png)
Inactive(disabled)
Exception occurred
![Exception occurred](https://selenium-world.net/wp-content/uploads/2020/07/ie_text2_c1-1024x616.png)
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](https://selenium-world.net/wp-content/uploads/2020/07/ie_text3_c1-1024x616.png)
Read-only(readonly)
It is not enterable.
![No response](https://selenium-world.net/wp-content/uploads/2020/07/ie_text4_c1-1024x616.png)
Hidden(display:none)
Exception occurred
![Exception occurred](https://selenium-world.net/wp-content/uploads/2020/07/ie_text5_c1-1024x616.png)
ElementNotInteractableExceptionMessage: Element cannot be interacted with via the keyboard because it is not displayed
<traceback object at 0x0000020D85C28948>
Hidden(visibility:hidden)
![Exception occurred](https://selenium-world.net/wp-content/uploads/2020/07/ie_text6_c1-1024x616.png)
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](https://selenium-world.net/wp-content/uploads/2020/07/ie_select2_c1-1024x616.png)
Inactive(pointer-events:none)
“option2" is selected.
![option2](https://selenium-world.net/wp-content/uploads/2020/07/ie_select3_c1-1024x616.png)
Read-only(readonly)
![option2](https://selenium-world.net/wp-content/uploads/2020/07/ie_select4_c1-1024x616.png)
Hidden(display:none)
Exception occurred
![Exception occurred](https://selenium-world.net/wp-content/uploads/2020/07/ie_select5_c1-1024x616.png)
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](https://selenium-world.net/wp-content/uploads/2020/07/ie_select5_v3-1024x616.png)
Hidden(visibility:hidden)
![Exception occurred](https://selenium-world.net/wp-content/uploads/2020/07/ie_select6_c1-1024x616.png)
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](https://selenium-world.net/wp-content/uploads/2020/07/ie_select12_c1-1024x616.png)
Inactive(pointer-events:none)
It is selectable.
![option2](https://selenium-world.net/wp-content/uploads/2020/07/ie_select13_c1-1024x616.png)
It is selectable manually.
![option2](https://selenium-world.net/wp-content/uploads/2020/07/ie_select13_c2.png)
Hidden(display:none)
It is selectable.
![option2](https://selenium-world.net/wp-content/uploads/2020/07/ie_select15_c1-1024x616.png)
It is selectable manually. “option2" is displayed.
![option2 is displayed.](https://selenium-world.net/wp-content/uploads/2020/07/ie_select15_c2.png)
Hidden(visibility:hidden)
It is selectable.
![option2](https://selenium-world.net/wp-content/uploads/2020/07/ie_select16_c1-1024x616.png)
“option2" is hidden, but it is selectable manually.
![option2 is hidden.](https://selenium-world.net/wp-content/uploads/2020/07/ie_select16_c2.png)
![option2](https://selenium-world.net/wp-content/uploads/2020/07/ie_select16_c3.png)
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 |
Discussion
New Comments
No comments yet. Be the first one!