Skip to content
Advertisement

Tag: selenium

IF ELSE in robot framework [Keyword as a condition]

I just can’t figure out how to map a keyword as a condition. The above function returns a bool value either True or False. “Is the Closed Message Page Present” is a keyword which I want to make condition. If the condition is true then it should execute the below two keywords else skip it. I tried following: I am

Python Web browser click listener

Is there any packages or ways to detect what is being clicking in a web browser? I mean get tag/xpath from the web browser (of what is being clicked)? To afterwards find it via selenium or similar? Or even with to determine what it is with the coordinates of the mouse click. Like the codegen in Playwright or similar, like

Web Scraping with table that can be changed

I have succesfully managed to set together a script now that extracts some information from a table on this website: https://www.nordpoolgroup.com/en/Market-data1/Power-system-data/Production1/Wind-Power-Prognosis/SE/Hourly/?view=table Now, I want to do this for all dates of 2021. I suppose I have to use the input id=”data-end-date” and activate some kind of button pusher, but I don’t understand how this can be done theoretically and have

Python Selenium – how to get all urls on a page that only load the link after clicking on the div?

I’m trying to scrap the results from this page https://www.zapimoveis.com.br/aluguel/apartamentos/sp+sao-paulo+zona-sul+itaim-bibi/ using Selenium, but I got stuck on obtaining the url of each result. It seems safe to say that each card’s url is not stored on a <a> element and apparently not stored at all at any point of the inner html of each div. The only way to obtain

Why is the get_attribute() function in selenium returning an empty string when inspecting the webpage shows the attribute?

I am trying to grab the src attribute from the video tag from this webpage. This shows where I see the video tag when I am inspecting the image. The XPath for the tag in safari is “//*[@id=”player”]/div[2]/div[4]/video” This is my code: Using .text instead og .get_Attribute also returns an empty string. I have to use safari and not chrome

Advertisement