667 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
1
answer
78
views
identify the correct class name - selenium python
I am trying to extract information from this page
I want to get the names from the leftmost column. But any class name or selector or xpath I try, it returns an empty list.
This is my code with a ...
0
votes
1
answer
82
views
Changing nested markup with getElementsByClassName
I'm working with the API of Google's Programmable Search Engine and using a callback to chnage the stying of output, specificaly the font size of the title of each search result snippet.
What I have ...
0
votes
2
answers
90
views
How to change text of a div element with multiple classes?
I am a beginner programmer and I am creating a website using the Tutor LMS Pro plugin.
This plugin allows you to create a panel with courses, unfortunately it is not fully translated into my native ...
1
vote
1
answer
64
views
How do I properly iterate, match, and splice spans with getelementsbyclassname?
I'm trying to put together a thing that will add tooltips to a page whenever a word has a definition. I have partially succeeded in doing so. The thing: https://codepen.io/veav/pen/vYqdEdB
The setup ...
0
votes
1
answer
106
views
How do I change the css style of a TJSNode item in TMS WEB Core?
Normally when I want to change the style of a component, then I can simply do something like this in Delphi:
Panel1.ElementHandle.style.setProperty('display','none');
But I want to change the style ...
-1
votes
1
answer
66
views
From getElementById to getElementsByClassName and get same result?
Looking at the code below, you will notice when I click the arrow icons an "Added!" text will appear in green to the left, but in one spot only.
I want the "Added!" text to appear ...
0
votes
0
answers
37
views
Why is the .getElementsByClassName returning undefined? [duplicate]
I am trying to make a Chrome extension for chess.com. I am trying to access the chess move list using .getElementsByClassName. The issue is that the .getElementsByClassName is returning undefined and ...
0
votes
2
answers
110
views
Selecting all elements by specific class name and using toggle to change the class name
Desired Outcome
I want to be able to dynamicly select all the elements with the classname of "input" and change said class name to "input-dm" utilizing toggle. This is for a toggle ...
2
votes
0
answers
48
views
firefox addon webextension how to getElementsByClassName in browser.menus.onClicked
update: solution is at https://github.com/mdn/webextensions-examples/tree/faadfca8ddce0c02cc20c3c261c76a9b50073122/context-menu-copy-link-with-types
html is only accessible in content_scripts . Not ...
0
votes
0
answers
68
views
Only getElementById works with code...getElementbyClassName and document.querySelectorAll aren't working
The following code works when I use get ElementById, but won't work when I switch to querySelectorAll, querySelector, or getElementbyClassName.
The table ID is always BlockLayoutController and then a ...
0
votes
0
answers
30
views
is it possible to getElementsByClassName that only selects <input> tags? [duplicate]
I have html code wherein the same class name is mapped to multiple HTML elements. Out of which I want only to get the value of "input" elements. Below is the sample code, please suggest how ...
0
votes
1
answer
57
views
Get just numbers from a list Content HTML [duplicate]
Currently I am starting a Project in Javascript its a Game cards, I wanna get just the numbers from the list
no string just Ints numbers text
I want to take just numbers from a list HTMl no string. I ...
2
votes
1
answer
6k
views
Why does getElementsByClassName() not work? [duplicate]
I'm taking a basics class on JavaScript and I have not been able to follow along since minute one. This language makes no sense to me. I get HTML and CSS, but JS is nonsense to me.
I'm trying to ...
1
vote
1
answer
110
views
Able to search element by XPATH not able to search element by CLASS_NAME or CSS_SELECTOR
I'm trying to scrape data from Google Maps but I'm not able to do it successfully as I'm not able to fetch find_elements(by class_name or css_selector) but I'm able to fetch that element by XPATH and ...
0
votes
0
answers
11
views
If I get Elements by Class Name, how do I access their Class List, so that I can add/remove/toggle Classes [duplicate]
linked to another question, I ran into the following problem.
I have several elements (in my case, images) with the same class (say "image1"). Using a button, I want to toggle (add and ...