This is my code:
myproject.py
userName.send_keys(user_name)
passWord.send_keys(pass_word)
Button.click()
print("1")
When I do Button.click()
, the pages can successfully JUMP but it CANNOT continue to the NEXT STEP, even it is just a print()
statement.
The next page is displayed like the image below.
In the next page, it has alert windows up there, and I cannot switch to it. The program gave me an error message:
[20120:10844:0529/150013.017:ERROR:textfield.cc(1773)] NOT IMPLEMENTED
And I have used submit()
too, it also did not change. I am really confused about this issue so I checked the lib of selenium:
webelement.py from Selenium
def click(self):
"""Clicks the element."""
print("1")
self._execute(Command.CLICK_ELEMENT)
print("2")
Somehow the print("2")
cannot be printed.
If someone knows the reason for this, I will appreciate it if you can tell me.