3,891 questions
0
votes
1
answer
73
views
Selector excluding nested values
nodejs: 24.7
jsdom: 26.1.0
Basically, I want to create a selector, that would exclude nested elements - it should find only elements at the first level of nesting. I have this:
it('Test selector non-...
3
votes
1
answer
88
views
Using SeleniumBase to wait for an image to become visible
I have a table header element:
<th><input type="image" src="../../..//images/icons/cell_state_header_icon.png" onclick="javascript:__doPostBack('ctl00$left_pane$...
0
votes
0
answers
33
views
Troubling setting selector using the SEMP v2
I am trying to create a selector.
I can 't find here https://docs.solace.com/API-Developer-Online-Ref-Documentation/swagger-ui/software-broker/config/index.html#/ how could I add a selector to a queue....
0
votes
1
answer
32
views
Selector functions in datatypes in the Z3 SMT solver - do they have to be unique?
In the Z3 SMT solver, consider a datatype of the following form, where the 'time' selector is shared between two alternatives in a datatype (the two selector functions extracting the time have the ...
0
votes
3
answers
81
views
How to set CSS attributes for one element on the basis of other element's class
I am working with React and CSS. I wanted to set "background-color":"yellow" on selector 2 (tr#selector2), if selector 1 (div.selector1) is having "show" class:
div....
0
votes
1
answer
64
views
Why is this css sibling selector not selecting all the siblings?
li:has(>label) {
background: #0c0;
}
li~li:has(>label) {
border: 4px solid #c0c;
}
<ul tabindex="-1">
<li><input type="radio"/ name="r6a" id="r61a" value="6....
0
votes
1
answer
97
views
Cannot read the object while using thread pools to process
I have to design a server with 3 main thread pools in order to read the data, process them and output the results to the client. I code like this but it always notice this kind of bug:
java.io....
-2
votes
1
answer
81
views
Can CSS have an arbitrary number of elements inside a pseudo-selector?
DOM snippet
ul.this>li>ul ->match
ul.this>li>div>ul ->match
ul.this>li>div>div>ul ...
0
votes
0
answers
51
views
NGRX How to change the store without changing the refference, so it shouldnt trigger custom selector method
Have a entity collection and subscribed in the component.entity collection will be updating frequently by websocket message. In the component item on the list can be selected by check box.Whenever ...
0
votes
1
answer
42
views
CSS Sibling Combinator Not Showing Label on Checkbox Check Within <details> Element [duplicate]
The timer label doesn't show up after I checked the countdown, here's the HTML structure and the CSS:
details {
display: flex;
/* Use flexbox layout */
flex-direction: column;
/* Stack ...
0
votes
1
answer
48
views
ModRewrite rule - Skip if the selector is not present
I have a situation where I need to write urls with and without selectors seperately.
for example
the URI /feeds/mydata.json should go to /content/feeds/mydata/app.json
the URI /feeds/mydata.sale.json ...
0
votes
1
answer
317
views
Taipy selector causes an error, how can I get around this?
When trying to construct a list from a selector, I use the following code:
tgb.selector(value="{countries}", lov="{all_countries}", multiple=True,dropdown=True)
where 'countries' ...
0
votes
2
answers
471
views
xpath plugin alternative in cypress for "locator or selector" in angular applications
As the xpath plugin is deprecated in cypress. It is becoming difficult to find the locator without xpath in angular based web applications. Has anyone found some alternative to xpath plugin on ...
0
votes
0
answers
39
views
Java NIO readable selectionKey always exist in selectedKeys
I'm new to Java NIO. Here is a toy tcp server I wrote. The problem is that a readable selectionKey is always available in the selectionKeys of the selector even after I remove it from the selectedKeys....
0
votes
0
answers
37
views
How to fix The selector "app-gif" did not match any elements
I get the error in console "The selector "app-gif" did not match any elements"
Any ideas what should i change or do?
This is gif.component.ts
// gif.component.ts
import { Component,...
0
votes
1
answer
2k
views
How do I find the exact row of a table using Playwright & C# when there is similar text
Using Playwright written with C#
I have a table with various columns and rows.
Each row has a unique name and on the same row there are some
buttons.
I am only interested in the delete/remove button ...
0
votes
1
answer
222
views
finding SSRS webpage login selectors for Yodeck web app script
Note: Not a web developer, just an IT admin asked to do things out-of-scope
I'm building a Yodeck web app script to log into an SSRS site. Their tool allows 'selectors' to be used to populate input ...
0
votes
1
answer
49
views
CSS generic selector not working with SVG
If I have this HTML
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
<g id="repeat">
<path fill="currentColor"
d="...
0
votes
0
answers
48
views
Combining Python Selector and asyncio modules
I'm currently implementing a server response handler using the selector module in Python. For sending requests to multiple servers and handling I/O operations, I'm leveraging asyncio.
In my main loop, ...
1
vote
1
answer
71
views
In what context can we use an unqualified #selector() expression in Swift?
The Swift equivalent of Objective-C's @selector() expression, is #selector(). In Xcode, the Objective-C, @selector() expression will offer autocompletions for all available selectors and the selector ...
0
votes
1
answer
162
views
Please solve a problem with selectorlib, get this message but can not uderstand it
inside main file code
import requests
import selectorlib
URL = 'http://programmer100.pythonanywhere.com/tours/'
HEADERS = {
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) ...
0
votes
1
answer
48
views
How to get an element ful lxpath in WebdriverIO?
I have the code that check if there is element which has the specific text is displayed under the container.
It worked well, while I used full xpath, but after we changed selector (it still get the ...
0
votes
1
answer
31
views
Trouble resolving user names from a separate state in Angular project with ngrx
I'm working on an Angular project using ngrx, where I have two states—one for users and another for projects. In the project state, each project has an Author and an Editor. The user state contains ...
0
votes
1
answer
93
views
CSS Using wildcard * all elements within a :not()
I've written bits of JS that select elements within a bootstrap modal. To ensure that said JS only selects elements that belong to the modal itself (i.e within its header/footer), but excludes any ...
1
vote
1
answer
142
views
How can I make my wesbcraper type something and select from a dropdown
So I want to scrape all the Chiropractors from this website https://chiropractic.ca/find-a-chiro/alberta/
I use a tool called Webscraper, which is very good, allow me to do pagination and further ...
0
votes
0
answers
20
views
CSS selector ~ targeting a class while hovering another class [duplicate]
i'm trying to target a class when i'm hovering another class.
I want to taget .colonne-gauche when hovering .behance
my html
<body>
<article>
<h1 class="test">lorem<a ...
0
votes
1
answer
43
views
Testcafe: How is a Selector created to select a timestamp outside of HTML tag? <strong>Timestamp:</strong> 12/13/2023 10:55 A.M. EST
I am new to TestCafe.
Below is example HTML code and when I create selector with id it is only returning "Current Timestamp:" and I need the timestamp for current time.
Page object file:
...
0
votes
3
answers
75
views
Uncaught Type Error: allButtons.remove() is not a function?
const startButton = document.getElementById("start");
const allButtons = document.querySelectorAll('button-56');
const logoButton = document.getElementsByClassName("Logo");
addGlobalEventListener("...
0
votes
0
answers
114
views
How to query contents between headings?
Is selector in Typst able to select contents between headings?
I have three headings, eg: Test1, Test2 and Test3,
how to extract/query the contents between these headings?
The result is 10 words ...
0
votes
1
answer
37
views
jQuery click both event.target and additional selector
Trying to have jQuery access both the event.target and another element on click but receive the error:
Error: Syntax error, unrecognized expression: [object HTMLButtonElement],#element2
Selector code:...
0
votes
0
answers
22
views
Multiple audio elements versus document.querySelector('audio'); [duplicate]
I used css+javascript to customise the style of an audio element (audio tag).
<script type="text/javascript">
audio = document.querySelector('audio');
etc...
This searches and ...
0
votes
1
answer
25
views
How to add parameter to Angular HTML element seletror directive?
I have a simple directive which selector is an img.
@Directive(
{ selector: 'img' }
)
export class ImageDirective {
...
}
How can I add boolean parameter to this directive?
I tried it with
@Input()...
-2
votes
2
answers
79
views
.nav > li OR .nav li to style all lists inside .nav class [closed]
Which is the correct selector to select all li items inside .nav class ?
Have tried both and they seem to both work. Want to know what the correct way of writing the selector
Trying to style all list ...
0
votes
1
answer
199
views
How to extract the inner text of a script tag using JMeter CSS Selector?
I simply added a class ".script_class" to my script tag to find it.
Then my JMeter settings are:
Name of created variable: content
CSS Selector expression: .script_class
Default Value: ...
0
votes
1
answer
55
views
How to override .testcaferc.json selector assertion parameters during test execution for only this specific test
Hello I've got a little problem and I need to override default selector timeout coming from my .testcaferc.json file which has some properties that look like this =>
"selectorTimeout": ...
-2
votes
1
answer
62
views
css locator returns empty list
i am making a web scraping course on datacamp :D
in the session it self we are scraping datacamp websites to get courses names and urls
however,
i am trying to reach the same result on pycharm on my ...
0
votes
1
answer
670
views
canPerformAction(_ action: Selector, withSender sender: Any?) function in UITextView does not recognize 'replace(_:)' action
I need to configure my UITextView such that it only performs a select set of actions via the Edit menu. I tried to override the 'canPerformAction(_ action: Selector, withSender sender: Any?)' function ...
3
votes
1
answer
79
views
Select only level being hovered, but not its parents or children
(I'm aware there's a myriad of CSS selector questions already, yet I couldn't find an answer to this one, unfortunately; so please bear with me.)
I have HTML with the following properties:
Some nodes ...
2
votes
0
answers
72
views
gnu radio Index Error: output_index must be < noutputs
I am using a gnu radio flowgraph to attempt to select the appropriate Selector Block output as explained below. The following error occurs when I run the flowgraph:
Index Error: output_index must be &...
0
votes
2
answers
70
views
How to use includes/equals in the get - cypress 12
I have a dropdown which gets populated with card numbers, the way our front end is built the last four of the card end up in the data-cy attr for each card entry in the drop down, looking like "...
0
votes
1
answer
42
views
Child component is displayed under another child component
Child #1 Component:
selector: 'app-home'
child #2 component:
selector: 'app-plans'
child #1 html:
<p>child 1 here</p>
child #2 html:
<p>Child 2 here</p>
app.component....
3
votes
2
answers
82
views
Why do target APIs use Any instead of AnyObject?
Why do Objective-C APIs like NotificationCenter.addObserver or UIButton.addTarget get imported into Swift with a an observer of type Any, instead of AnyObject?
Is there any reason for that? Is it even ...
0
votes
2
answers
52
views
JQUERY: find checkboxes in a jQuery SELECTOR by matching on part of a string that is in the OnClick Attribute
We have a JQUERY challenge in that we need to find checkboxes in a JQuery SELECTOR by matching on part of a string that is in the OnClick Attribute.
If we were matching on a NAME or ID, it would be ...
1
vote
1
answer
50
views
Scrapy: select last decendant node?
I have a dict with selectors which I use to get data:
for key, selector in selectors.items():
data[key] = response.css(selector).get().strip()
One of the selectors is span::text, but sometimes ...
0
votes
3
answers
566
views
XPath + Selector: Cannot find out a xPath to click when switching to another window
In my flow => I have switched to another window and cannot find out the xPath to click
I have the following html => I tried some ways to click a tag [SerName] by xPath and Css Selector but they ...
0
votes
1
answer
52
views
jQuery get data-id from selector onchange
Is it possible to get the data attribute value during an on change event?
jQuery(document).ready(function($) {
$('.mystatus').on("change", function() {
var value = this.value;
...
-3
votes
1
answer
60
views
Javascript Regex: get specific parts inside brackets without taking extra brackets
I am building a program that would simplify coding discord bots. I wanted to add inline functions, but seems like my regex selector is not the perfect match.
My program loops through every inline ...
0
votes
1
answer
25
views
The chart doesn't show up on the data app - Shapelets Platform
I have been trying to work on Shapelets Dataapp to display information for a presentation. I tried to work on a selector that would display the data depending on the zip code. Everything is working ...
0
votes
0
answers
74
views
Get text of selector, put into if statement
I'm trying to get the text of this selector (the upload date of a video in the search result):
uploadedago: #metadata-line > span:nth-child(4)
the text is this: "uploaded x time ago". ...
0
votes
2
answers
101
views
Read from multiple inputstream with one blocking call
I have multiple InputStream, and I want to read without polling. My actual code:
BufferedReader p = new BufferedReader(new InputStreamReader(k.getInputStream()));
BufferedReader p2 = new ...