selenium in python : NoSuchElementException: Message: no such element: Unable to locate element
I tried typing ‘abc’ in the first block of id and ‘cdef’ in the second block of password.
However, the error code at the bottom comes up.
I tried typing ‘abc’ in the first block of id and ‘cdef’ in the second block of password.
However, the error code at the bottom comes up.
I have built my first few scripts with a nice little GUI on them, as the tutorials have shown me, but none of them address what to do for a more complex program.
My objective is to add a vertical scroll bar to a frame which has several labels in it. The scroll bar should automatically enabled as soon as the labels inside the frame exceed the height of the frame. After searching through, I found this useful post. Based on that post I understand that in order to achieve what i want, (correct me if I am wrong, I am a beginner) I have to create a Frame first, then create a Canvas inside that frame and stick the scroll bar to that frame as well. After that, create another frame and put it inside the canvas as a window object. So, I finally come up with this:
This is the code that’s giving me trouble.
I’m looking for a function that makes it easier to switch between two frames. Right now, every time I need to switch between frames, I’m doing this by the following code: