I’ve been trying to click a button that downloads a CSV file from “https://mol.org/regions/?regiontype=countries”. I’m sure that I’ve selected the button, as I can print the text written on it, but whenever I try to .click() it, it doesn’t download the file. Are there any additional steps needed to operate the function bound to the button? Thank you in advance.
Tag: selenium
Web scraping in Python using Selenium
I am new to web scraping and i am facing a problem. In the appending part, it seems to append only the first row of the table I want to scrape! I am sure I am missing something. Any ideas? Thanks in advance! The code snippet is the following: Answer UPD You are using a wrong locators. All the parameters
Python selenium google map elements unable to locate
the code I’m trying to find elements are here is the element I’m trying to access please check the image the url of the google page is google page link but it says elements unable to find I’m using full xpath Answer just right click on what you need and press inspect tried it on the review and it worked
How to login using Selenium
I have one web site like www.abc.com in this I need to add Email and press continue and in second page I need to add password and check the check box so how can I enter the password in 2nd page. I tired with : Answer Before getting the web element you have to validate the element is fully loaded
Selenium / More-Element clicking not possible allways?
I try to click on the more element on these pages – with the following code for the following link this works fine with finding element per xpath: But when i try the same code with another link / app like https://apps.apple.com/us/app/contacts-backup-pro-restore/id1120943403?uo=4 the more-element is not opening anymore I saw that the xpath is slightly different so i tried it
Is it possible to store some HTML code in “context” and then make it work on one of the templates?
My goal is to get this table’s code from another website using selenium, store it in the context dictionary to then place it in one of the templates in a way that it won’t show the code as text but it will make it part of the page’s code itself. This way I already managed to store the code in
Finding button by XPath with Selenium
I have been trying to locate the following button using Selenium WebDriver: I used css selector, xpath, class and nothing seems to work (even by just copy pasting the one given by the inspector. The closest I’ve been is locating the div with the class _1ibtygfe) Here is everything I tried, I’m desperate I don’t understand why it does not
Selenium error: Message: Select only works on elements, not on
I know that I should find “select” element so I can choose from drop-down list, But here google trends don’t provide “select” element and I want to choose any value from data and time list and When I try to do this I got this error ‘Message: Select only works on elements, not on ‘…. I found a solution but
Looping through table rows when the url doesn’t change with selenium
This is what the problem looks like. I’m supposed to go through this table with 2995 rows. Each of these rows can be double clicked which opens up a details page for it. I’m supposed to open a row, check some value from the details page, and go to the next one, doing the same. The table itself has no
Search for a specific element in multiple pages and click using Python Selenium
Hi im trying to navigate from page 1 to page 5 (the element can be in any of the pages)and find and click on a specific element using python selenium. The following is the element from the page: <span _ngcontent-mtx-c123″” class”ng-star-inserted”>ABC Company</span> i tried by using : driver.find_element_by_name(“ABC Company”).click() but this doesnt work. Another Way i tried: I need the