selenium

Is it possible for selenium to have all the browser tabs focused simultaneously?

Is it possible for selenium to have all the browser tabs focused simultaneously? Question: My project needs to have about 5 or 6 active tabs in each browser instance, is it possible for selenium to have each tab of a browser focused at the same time so, for example, video autoplay can continue to work …

Total answers: 1

How do I find the images from the GIF section on Tenor via Selenium + Python?

How do I find the images from the GIF section on Tenor via Selenium + Python? Question: I want to find GIFs on Tenor, and download them. Example: URL : https://tenor.com/search/dance-gifs I want to download the GIFs section which seem to have this HTML code: <div class="Gif "><img src="https://media.tenor.com/Lbrr3HR3CnkAAAAM/snoop-dogg-rap.gif" width="290" height="460.0454545454545" alt="Snoop Dogg Rap GIF …

Total answers: 1

How to click on checkbox filter with selenium Python?

How to click on checkbox filter with selenium Python? Question: I’m trying to click on a checkbox filter on a website with selenium python. This is a part of its HTML code linked to one of the checkbox options. <div class="shopee-checkbox" bis_skin_checked="1"> <label class="shopee-checkbox__control"> <input type="checkbox" name="" value="Jabodetabek"> <div class="shopee-checkbox__box" bis_skin_checked="1"> <i> </i> </div> <span class="shopee-checkbox__label">Jabodetabek</span> …

Total answers: 2

Trying to Tweet without API using Python, Selenium and Chrome Web Driver

Trying to Tweet without API using Python, Selenium and Chrome Web Driver Question: With the recent announcement of Twitter charging for their API usage, I am trying to Tweet without it. But I am running into issues, from my Ubuntu box. Below is combination of various Python scripts found online. The error I am running …

Total answers: 1

Clicking an element on an overlay table using Python Selenium?

Clicking an element on an overlay table using Python Selenium? Question: I am trying to create a workaround to click the first element in a table on a website that has an overlay table. The xpath does not appear to be related to the iframe, but I do not HTML. The text does not link …

Total answers: 1

How to split list of coordinates into separate variables?

How to split list of coordinates into separate variables? Question: I’m trying to split coordinates of elements that I find like this elements = WebDriverWait(driver, 20).until(EC.visibility_of_all_elements_located((By.XPATH, "//span[text() =’100′]"))) When I only have to find coordinates of element that appears only once I just use .location, but my problem is when I have to find element …

Total answers: 3

Keep only an element of a webpage while web-scraping

Keep only an element of a webpage while web-scraping Question: I am trying to extract a table from a webpage with python. I managed to get all the contents inside of that table, but since I am very new to webscrapping I don’t know how to keep only the elements that I am looking for. …

Total answers: 2

Selenium: find elements by classname returns only one item instead of all

Selenium: find elements by classname returns only one item instead of all Question: The code below sometimes returns one (1) element, sometimes all, and sometimes none. For it to work for my application I need it to return all the matching elements in the page Code trials: from selenium import webdriver from selenium.webdriver.common.by import By …

Total answers: 1

Clicking on element by finding it first by column and row

Clicking on element by finding it first by column and row Question: I’m trying to click on element in table that is only seperated by columns and every colum only has one row. The table looks like this I tried locating element like this WebDriverWait(driver, 5).until(EC.element_to_be_clickable((By.XPATH, f"//div[@class=’srb-ParticipantLabelCentered gl-Market_General-cn1 ‘ and contains(., ‘140.0’)]/following::span[text() =’2.40′]"))).click() but instead …

Total answers: 2