Re: [Tutor] Open a Url in new tab and tab switching in IE using python and selenium
In a message of Wed, 06 May 2015 00:15:39 +0100, Alan Gauld writes: On 05/05/15 19:22, shweta kaushik wrote: Thanks Steve for the information. I searched but was not able to find suitable forum to shoot this question. So posted here if anyone can help out. As Steve suggested the main python list is probably your best bet. Or stackoverflow.com There are people whom I know know selenium well who read that and don't read python-list (any more). Laura ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Open a Url in new tab and tab switching in IE using python and selenium
Hi Laura, I have posted same question in stackoverflow.com also but no body replied till now, For timebeing I am using another approach to do my work. Thank you all for your suggestions. Regards, Shweta On Tue, May 12, 2015 at 3:06 PM, Laura Creighton l...@openend.se wrote: In a message of Wed, 06 May 2015 00:15:39 +0100, Alan Gauld writes: On 05/05/15 19:22, shweta kaushik wrote: Thanks Steve for the information. I searched but was not able to find suitable forum to shoot this question. So posted here if anyone can help out. As Steve suggested the main python list is probably your best bet. Or stackoverflow.com There are people whom I know know selenium well who read that and don't read python-list (any more). Laura ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Open a Url in new tab and tab switching in IE using python and selenium
On Tue, May 05, 2015 at 01:38:59PM +0530, shweta kaushik wrote: Hi All, I am trying to open a new tab in IE10 and selenium 2.45. This list is for beginners learning the Python language, and unfortunately selenium is a little too advanced for most of the people here. I myself have never used it. You might be lucky, and someone has used it, but you will probably have more success on the main python list, python-l...@python.org, also available on Usenet as comp.lang.python and gmane.comp.python.general. Your best chances of success are to find a dedicated selenium mailing list or forum, and ask there. Good luck! -- Steve ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Open a Url in new tab and tab switching in IE using python and selenium
Thanks Steve for the information. I searched but was not able to find suitable forum to shoot this question. So posted here if anyone can help out. Regards, Shweta On May 5, 2015 6:21 PM, Steven D'Aprano st...@pearwood.info wrote: On Tue, May 05, 2015 at 01:38:59PM +0530, shweta kaushik wrote: Hi All, I am trying to open a new tab in IE10 and selenium 2.45. This list is for beginners learning the Python language, and unfortunately selenium is a little too advanced for most of the people here. I myself have never used it. You might be lucky, and someone has used it, but you will probably have more success on the main python list, python-l...@python.org, also available on Usenet as comp.lang.python and gmane.comp.python.general. Your best chances of success are to find a dedicated selenium mailing list or forum, and ask there. Good luck! -- Steve ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Open a Url in new tab and tab switching in IE using python and selenium
On 05/05/15 19:22, shweta kaushik wrote: Thanks Steve for the information. I searched but was not able to find suitable forum to shoot this question. So posted here if anyone can help out. As Steve suggested the main python list is probably your best bet. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
[Tutor] Open a Url in new tab and tab switching in IE using python and selenium
Hi All, I am trying to open a new tab in IE10 and selenium 2.45. It is able to open a new tab using pyrobot. But when i am trying to open url in new tab, it is getting opened in first tab. Focus is not set to second tab and hence it is not working and also switching of tab is not working. please provide solution. I have provided my code below: Code: # Open first tab IEDriverPath = /../../../../../../../IEDriverServer.exe driver = webdriver.Ie(IEDriverPath, port=) pyseldriver.get(https://www.google.com/;) time.sleep(5) tab1 = pyseldriver.current_window_handle #open another tab obja = pyrobot.Robot() obja.key_press(pyrobot.Keys.ctrl) obja.key_press(pyrobot.Keys.t) obja.key_release(pyrobot.Keys.ctrl) obja.key_release(pyrobot.Keys.t) time.sleep(FrameworkConstants.Time02) pyseldriver.switch_to_window(pyseldriver.window_handles[-1]) tab2 = pyseldriver.current_window_handle pyseldriver.get(https://www.python.org/;) time.sleep(5) #Switching to first tab and opening new url pyseldriver.switch_to_window(tab1) pyseldriver.get(https://www.yahoo.com/;) time.sleep(10) #switching to second tab and opening new url pyseldriver.switch_to_window(tab2) pyseldriver.get(https://www.gmail.com/;) time.sleep(10) But links are not opening in new tab and switching is also not happening. All links are getting opened in first tab itself. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor