Questions tagged [element]
In metadata, the term data element is an atomic unit of data that has precise meaning or precise semantics.
6,054
questions
0
votes
2
answers
24
views
How to split a list of long strings into a new list with shorter strings?
I want to split the text of a novel into its chapters and those chapters again into chucks of 1000 words each.
I already created a list with my chapters but now I have no clue how to split those list-...
-1
votes
1
answer
21
views
Accessing dollar sign $0 element in Python Selenium
I have an element with no name or id attribute I can only access with a dollar sign:
console.log($0);
"100"
How can I access this from Python Selenium? I'm trying this:
my_value=driver....
0
votes
0
answers
13
views
Cannot resolve symbol 'linkDependency' Element staticModules is not allowed here. Cannot resolve symbol 'staticModule'
enter image description here
Getting the below errors after launching the intelliJ from corecli core:ide... Error stack trace: Cannot resolve symbol 'linkDependency' Element staticModules is not ...
-1
votes
0
answers
18
views
Is there a way in Java to import data/rows from xml file to Eclipse? Or way to create large xml in java? [closed]
I have an xml file with more than 1000 rows. I want to create it in Java. Is there a way to import it or method to create large xml file (instead of creating element by element)?
Thank you
-3
votes
0
answers
28
views
How do I get the k smallest elements in a list? [duplicate]
For example:
k = 2
lst = [9, 6, 87, 4]
so I need to get the 2 smallest elements in lst (e.g. 4,6).
In addition, how can I do it without using 'import'?
0
votes
0
answers
10
views
Move selected items in multi-select to top in Element framework for Vue
Is it possible to move selected items in multi-select to top in Element framework for Vue?
E.g. here:
<template>
<div style="display: inline-block">
<p style="...
0
votes
1
answer
14
views
Wildcard CSS code to hover code when a busy day is on the calendar
I am currently using wordpress and Easy appointment plugin. I have calendar that shows red days for when it's busy and white when it's available. I would like to have text box pop up when it's busy. I ...
-3
votes
1
answer
28
views
check elements of list in a specific way [closed]
a = [1,5,4,3,5,1,2]
imagine a list like this one
what i want to do is:
depending on the value of element in list append a different value in second list
for i in range(len(h)):
for j in ...
1
vote
1
answer
54
views
Two semantic elements being read as one
(This is my very first time coding my own page - apologies if this seems obvious)
The layout of the webpage is: header, section.hero, section.middle containing an article and aside, section.infoform (...
0
votes
0
answers
15
views
How can we put animation code into input field so it will reflect in html elements?
I have made a console using html, css and javascript and there is a input field in my console. I want to animate my html element using that input field... I want to put animation code into input field ...
0
votes
1
answer
61
views
Can't find an element
I'm trying to find an element using Python 3.10.5 and Selenium 4.2.0.
The problem is: The program works fine until I reach some point.
I want to access the element marked in red. When I see the page ...
0
votes
0
answers
12
views
How to show a random element of an json object from localhost?
I wish to show a random quote from a local database every time I reload the page. I'm fetching the data from localhost:3000 using custom useFetch hook but all I've ever did was map trough the entire ...
0
votes
1
answer
16
views
Paragraph element that doesnt have two line breaks [duplicate]
I have a div with two paragraph elements inside like so:
<div id="statsDiv"">
<p id="scoreCounter">Score: </p>
<p id="timeCounter">Time: &...
-1
votes
0
answers
13
views
Group elements into arrays from an array containing occurent elements in Python [duplicate]
I have an array like that :
['Hello','Hello','Hello','Hi','Hi','Hello','Hello','Hi','Hi','Hi']
And I want to build automatically 4 arrays like that (group by element):
Array 1 : ['Hello','Hello','...
0
votes
1
answer
19
views
Trigger is not firing when clicking on element in GTM
i have configured a click trigger with a matched css-selectior.
Unfortunately, trigger is not fired because GTM is not seeing any matches, however, in screenshot you can see the. Can anyone help out, ...
0
votes
1
answer
14
views
python remove "Next Line" Character (showing up as \x1b[1B)
I am pulling output with paramiko via ssh from a firewall.
The output is showing like this:
l = ['Total active sessions : 0\r\x1b[1BActive TCP sessions : 0\r\x1b[1BActive UDP sessions : 0\r\x1b[...
-2
votes
1
answer
43
views
How to get multiple random elements from a Swift Set? [duplicate]
I have a Set which contains multiple Elements. My goal is to get 10 random Elements out of it.
How can I achieve this goal in the simplest way (hopefully one line) without having to modify the Set ...
0
votes
0
answers
12
views
Mapping of delete word to caps_lock and spacebar using carabiner elements
I am trying (unfortunately unsuccessfully so far) to set the combination of the caps_lock and spacebar keys to delete word (backspace + option).
Currently, I have implemented in my carabiner ...
0
votes
0
answers
12
views
how to append element dynamically to other element in react?
function RenderFolders({data}){
if(!data) return
const res=[]
res[0]= React.createElement('div', {className:'total-wrap folder-wrap', id:0})
const arr=[data]
while(arr.length!=...
0
votes
1
answer
74
views
How can I remove the last character of an element in an array and add it to the beginning of another element?
I have the following code:
white='\e[0;37m'
array=("{$white}aaaa" "{$white}aaa" "{$white}aaa")
Using cuad=$( echo -e "$array[0]}" | grep -o a | wc -l I can ...
0
votes
1
answer
47
views
How to find elements by calendar date using selenium in python?
I'm trying to scrape the table values from the link below by adjusting the calendar dates to be between two specific dates:
https://markets.businessinsider.com/earnings-calendar
I use the code block ...
0
votes
1
answer
37
views
CSS - How to hide an element based on position within page?
I have a sticky element I've setup for a button on mobile devices. This is the code:
.sticky-btn {
position: fixed;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
}
Works great but I ...
1
vote
3
answers
48
views
Uniting consecutive and equal elements in the array in Prolog
I'm trying to unite consecutive and equal elements in the array in Prolog such that a list such as
[1,1,1,a,b,b,3,3,3,3]
is transformed into
[1,a,b,3]
1
vote
2
answers
77
views
error when i use cy.xpath inside cy.origin
I'm using Cypress to test a website.
When I use xpath inside cy.origin(), It's not working.
it('t1', function() {
cy.origin(('BaseUrl'), () => {
cy.visit('/profile')
cy.xpath(&...
0
votes
1
answer
42
views
Selenium unable to locate element when logged in
When I try to click on an element using Selenium it only works if I am not logged in the website, otherwise I get this message: "no such element: Unable to locate element".
If I remove the ...
1
vote
2
answers
46
views
Count occurrences of list element in nested list
I have a list like this:
list_all = [['car', '123464', '4322445'], ['car', '64346', '643267'], ['bicycle','1357','78543'],
['bicycle', '75325', '75425'],
['car', '8652', '652466'], [...
0
votes
0
answers
21
views
Selenium (Java) and seemingly unsolvable "element not interactable"
I've run into a Selenium element not interactable problem that I cannot seem to solve. The page is an Angular page, if that's relevant. The element is a checkbox, with a label (among other things).
...
1
vote
4
answers
67
views
How to sort a list in Python using two conditions?
I have a list of list in Python that I want to sort based on two categories. The sorted list should have the lowest number in the last position and also the first element has to be greater than 400. I ...
0
votes
4
answers
49
views
Return string element from array given index
I have the following code:
Dim CurrMonth As Integer
Dim MonthPos As Variant
Dim CurrPos As Integer
CurrMonth = Month(Date) - 1
MonthPos = Array("January",...
0
votes
2
answers
46
views
problem with find an element using cypress and xpath
I'm trying write a code (using cypress) to bypass long press verification such that
verification image
this is inspect>> id and class values are changes every session
<p id="...
-1
votes
0
answers
63
views
How to delete the shortest word from the list using C++? Without an array
Hello everyone can someone help me to delete the shortest word from the linked list without array?
I'am a first course student and learning pointers with linked list etc.
This is my last task to do ...
-2
votes
2
answers
46
views
How to find the list in Python?
I have a list of list in Python:
list_all = [['orange', 'the dress', '5643,43245,5434,22344,34533'],
['pink', 'cars', '12322,4455,533,2344,24324,64466,543342'],
['dark pink' '...
0
votes
0
answers
25
views
How to target multiple arrays in jQuery?
I would like to target the first through fourth elements within multiple arrays. I know how to do so with javascript but what the equivalent be in jquery?
var diags = [
[0, 7, 14, 21],
[1, ...
0
votes
0
answers
27
views
Delete a specific row in numpy array after applying a condition
I have an array that its name is packets, and has 9 columns and thousands of rows. I need to delete the rows based on the following condition: If each of element in column 1 is zero then delete ...
0
votes
1
answer
27
views
Customize the coordinates of the entity in pedWait
In a pedwait entity, I want each element that enters to have my own specified coordinates. I use the method: ped.setXY(100,100), but it has no effect. What should I do?
0
votes
1
answer
37
views
why is difference between jquery input element and javascript input element?
I have two type of call function check_negative_value().
in first type I set the onchange=change_quantity(this)and then call check_negative_value() from there like:
function change_quantity(elem) {
...
1
vote
1
answer
67
views
Whenever I Put the payment page on my app, it goes blank on ReactJS
I'm doing an e-commerce app in which you rent tuxedos but when I go to the payments page it goes blank. It happened when I installed Stripe API on my app and it became buggy in the specific page. In ...
0
votes
1
answer
28
views
Javascript document.activeElement is undefined on mobile
So currently this function works on desktop but when I test it on mobile I get "undefined." I checked to see if activeElement is compatible on iPhone safari and it says it works there so I'm ...
0
votes
0
answers
8
views
significant ratios for diferent elements in geology
I'm searching for my thesis (iron ore composition)
I'm looking for important significants ratios to discuss for diferents elements in geology (like Zn/Fe..)
could you please help me!?
Fe
0
votes
2
answers
30
views
identifying an i element in css properties
I want to change the position of an i element which is an icon. I have tried including it's class and changing the position but it didn't seem to work, I then included it in a span element and it ...
1
vote
1
answer
51
views
Can JavaScript function trigger only when specific HTML <element> exist eliminating the need of unique ID tags?
Unlike questions based on (unique) id's and name's, this targets name-less and id-less elements!
I would like to load the JavaScript function called audio() only when an <audio> element is ...
0
votes
1
answer
46
views
getElementByID returning null? [duplicate]
I am having trouble getting my elements by ID, as they keep returning null.
I've noticed some people have this problem with the script loading before the DOM but I'm not sure how to fix this issue ...
0
votes
0
answers
44
views
html2pdf cuts content in half when html is converted to PDF - javascript
I am trying to achieve webpage to PDF conversion using html2pdf library in javascript but content is cut in half when documents are longer than 1 page and elements like e.g. images happen to be ...
-1
votes
1
answer
25
views
Getting an elements children IDs in selenium python
I'm having some issues getting the div id's from an element I have scraped.
Let's say this is the website code in the area I have pulled via class name "products"
There are id's also in the ...
1
vote
2
answers
46
views
How to locate element having dynamic ids?
I want to locate this element:
<tr class=" category-2 saleproductname " id="21" xpath="1">
<input class="check-box" id="BillInfo_4__isSelected&...
0
votes
1
answer
34
views
Read data from an html input without id and without name
I have an html page with a table that contains several inputs.I want to take the data from the inputs, however they do not have id or name.
If I analyze the DOM I can see that each input has different ...
-2
votes
1
answer
36
views
Javascript: check multiple elements in array [closed]
I have an array: a=[10,11,12,13]. How can check elements from a[0] to a[2] if they >0 in the shortest way and don't use for loop? Does anyone have any ideas? Thank you.
2
votes
5
answers
39
views
Python: How to copy elements from list that start with a certain letter into new list or remove elements from list that do not start with letter
I am getting a list from an excel file using pandas.
start_path = r'C:\scratch\\'
File = 'test.xlsx'
import pandas as pd
mylist = []
df = pd.read_excel(start_path + File, sheet_name='GIS')
mylist = ...
0
votes
2
answers
225
views
I am trying to dynamically create a Mui icon using React.createElement. However, React lowercases the element. Is there a way to keep case?
I am getting service.icon from JSON, so it looks like so
[
{
"icon": "AdminPanelSettingsIcon",
}
]
I am using React.createElement() like so,
data.map((service) => {
...
0
votes
0
answers
20
views
object HTMLImageElement Showing instead of image showing [object HTMLImageElement]
I created an array of 6 images and tried to display them, but instead of the images I got the text:
object HTMLImageElement
<div class="box">
<button class="button1"&...