Issue I am trying to scrape a page and there is a point I am stuck at. Here’s first the HTML part of the whole HTML page <article class=”mod mod-Treffer” data-teilnehmerid=”122085958708″> <div data-wipe=”{"listener": "click", "name": "Trefferliste Eintrag zur Detailseite", "id":
Continue readingTag: css-selectors
[SOLVED] How to find the element using css-selector through Selenium
Issue For this code need a css-selector, x-path is available Following is the x-path such as: //div[@class=’item-display-name’ and text()=’edit’] HTML of the element: <div class=”item-display-name”>edit</div> Solution To locate the element you need to induce WebDriverWait for the visibility_of_all_elements_located() and you
Continue reading[SOLVED] I want to include or exclude divs based on a specific tag
Issue I want to scrape every football match from my favorite club Arsenal. The website i intend to scrape: https://fbref.com. I want to scrape every player that has scored in each match. Here is my issue: If arsenal haven’t scored
Continue reading[SOLVED] Can't get element value by css or xpath
Issue i tried to get the value of an element by xpath and css, and tried with .text and .get_attribute(‘value’), but no way to get it. element: <div class="itemWrapper-tp4JSoHa"> [flex] <div class="value-tp4JSoHa">1205.61</div code 1: WebDriverWait(driver, 60).until(EC.visibility_of_element_located((By.XPATH, "//*[@class=’value-tp4JSoHa’]"))) equity = driver.find_element_by_xpath("//*[@class=’value-tp4JSoHa’]")
Continue reading[SOLVED] Selenium – find id based on class tag
Issue I want to find with Selenium (python) an id based on a class tag I want to find the result of a html form. There are 2 results possible, available or not available. Both options will appear in the
Continue reading[SOLVED] Selenium unable to find Log In button on the page using LINK_TEXT method
Issue I’m trying to locate a "log in" button on a webpage and then to click it using the "LINK_TEXT" method, however it seems selenium is unable to locate this button for some reason: Code: from selenium.webdriver.common.keys import Keys from
Continue reading[SOLVED] Can I use CSS to add a bullet point to any element?
Issue Pretty simple question, but I am not sure if it is possible. I want to add an image to act as a bullet in all <h1> elements. I know I can achieve this by: <span class=’bullet’></span><h1>My H1 text here</h1>
Continue reading[SOLVED] Hide all cells content except the first one
Issue Our online store has a variations table with prices. The cells display the original price, the sale price, and the discount percentage. We use this script to get the discount. Since the prices are the same in all variations,
Continue reading[SOLVED] Select parent selector when child is checked in SCSS/SASS
Issue Hello guys I have a very newbie question here but can’t find a way to fix: .parent { justify-content:left; .child__checkbox { // properties &:checked { justify-content:right; } } When the .child__checkbox is checked, the .parent property should change from
Continue reading[SOLVED] How to create "button array" with relatively even rows and stretched buttons?
Issue I have an unordered list with a variable amount of items which I am treating as buttons (sort of like a navbar). I would like the "buttons" to have the following behavior: Have a minimum width (for the moment
Continue reading