Skip to content

Tag: html

How to get the value of an element within a tag?

I want to get the values of data-account and data-id which are elements within play-js tag. elemname = driver.find_elements_by_xpath(‘xpath…/div/play-js’) I tried like below, but I couldn’t get the value. With javascript, I was able to import it with the code below. How can I get the v…

Having some difficulty finding out how to detect in Python

I’m sorry if this is a stupid question, but I’m having a bit of trouble coming up with how to get the ‘a’s or ‘hrefs’ (aka the emails) to actually appear as the first item in the row. For starters, I’ve tried the insert() method, but it never actually gives me anythin…

Inheriting name of category in Flask

I am working on budget app in Flask. Homepage give you ability to create names of Budgets and then names are transformed to links href which transfer you to another page with budget details. I want heading from /add_budget page to be inherit from budget name defined by user and it works fine until I add secon…