Re: [Tutor] Fwd: Question about selenium with python
On 21/12/16 01:29, Fazal Khan wrote: > Im a new programmer and this is my first time posting here. I have a > question about using selenium with python. I notice you haven't had an answer yet. That may be because Selenium is not part of the standard Python library and this list is for questions about the core language and its standard library. You may be better off asking on a selenium specific list or forum. This page lists several options: http://www.seleniumhq.org/support/ Meanwhile, this page may help with your specific question: http://selenium-python.readthedocs.io/navigating.html HTH -- 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] Fwd: Question about selenium with python
Hello, Im a new programmer and this is my first time posting here. I have a question about using selenium with python. My first question is how do I get selenium to click on a link contained within a specific cell of a table? I know how to get selenium to click on a link in general but in this case there are several links which have the same name, but each of these links are in a different cell. Basically Id like to give selenium the location of a specific cell, and then tell it to click on the link inside that cell. Lets say the link is located in the 3nd row and 3nd column of a table. I tried the following code but it didnt work link = driver.find_element_by_xpath("//tr[3]/td[3]") link.click() Thanks Fuzz heres an example of the HTML code im working with: Name Clinic # Name1 MRN1 Plans | Delete ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor