Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
i shared the code of windows method. Actually, it's working fine. I'm using it for other projects also but this problem's causing from another reason that i don't know. As mentioned before, i'm facing with same problem with click() and sendkeys() method also. If i use click method, click action is working but subsequently coming code is not executed but if i use sendkeys method, following codes are being executed so same type of issue is here also. last step on child window is clicking the button. i do it and child window is closing but i can't switch to main window. execution's getting stuck.
getting same issue. i think it's not related to code cause i've tried each method of it (xpath, cssSelector etc.) as i said, code was working before but right now concerned element can't be captured