Questions tagged [selector]

A selector can be a string identifying a method name in the Objective-C or Smalltalk programming language or a special kind of switch used in computers to connect multiple lines (I/O) to a single line. Please do not use this tag for jQuery/CSS selectors.

Filter by
Sorted by
Tagged with
0 votes
0 answers
30 views

How do I select this class in puppeteer?

Keep in mind I need it to specifically grab the custom-body-copy class along with the body copy class as there are hundreds of body-copys on the page. <div class="row item-row" id="...
2 votes
0 answers
21 views

vscode function who can tell me the parent selector in css/sass where the cursor is

I want to add a feature for auto complet css selector in scss files who can handle the "&" in the "HTML to CSS autocompletion" extension on vscode. For exemple : .description{ ...
  • 61
0 votes
1 answer
15 views

How to select a child element of several classes? [duplicate]

If I have several divs which all have individual class names, is there a way to select a common child element between them? In the example below I have three divs (out of 5) which have a common color ...
0 votes
0 answers
27 views

Why am I having this Javascript ".querySelectorAll" issue? [duplicate]

I am following a tutorial to create a portfolio website. I have followed the tutorial exactly with no errors (Yes, I am using a tutorial, I have not built anything on my own yet, but I'm hopefully ...
-1 votes
1 answer
30 views

How can I get my JavaScript function to listen to events and show in my HTML markup?

I wanted to practice vanilla JavaScript fundamentals, and I can't see why my startGame() function isn't defined. Probably missing something basic. <button id="start-btn" ...
-1 votes
0 answers
22 views

Cannot get value or get text from the element

I'm trying to get the value of this element; in this screenshot, it is the number 5934 However, I was only able to get the path I used getValue() and getText() commands but didn't work. Any idea why ...
  • 21
0 votes
0 answers
21 views

Scrapy returns empty with one selector im trying to extract, however it works just fine with other selectors

I am creating my first Scrapy script in Python and I am trying to get information from this https://lens.google.com/search?p=AfVzNa_oPFWK2g2P_PJ4xi21nkmzjWr-cgfP1HhoBWgqt3GOgUmN1Lpvr-...
0 votes
1 answer
35 views

Testcafe - Select an element that contains 'text' or 'text'

I am trying to get an element that contains a text in English OR a text in French. However, it only take the first text into account in ('text in French'||'text in English'). How can I select the ...
0 votes
0 answers
25 views

Why is Scrapy xpath selector not working?

I'm trying to extract the text from this Xpath in scrapy shell: scrapy shell 'https://www.matterhorngotthardbahn.ch/de/stories/autoverlad-furka' response.xpath('//*[@id="prita-medium-content&...
0 votes
0 answers
16 views

Error elem[prop] is not a function when select element in wdio

I want to select the 1st button in this div for my test: <div id="group_button" class="text-center background-color-ecodrop common-padding-bottom-10"> <...
  • 21
2 votes
1 answer
45 views

Select element added with function

first of all sorry if my english isn't my native language. I'm just starting to learn JS and i'm trying to create a basic todolist on codepen (https://codepen.io/Jonathan_Design/pen/OJwqXrO) but i'm ...
0 votes
0 answers
10 views

I want to add dropdown multi selector filter to only display the selected contents as same as in excel

I have converted an excel to json and then converted to a table using javascript with nodejs server . Onclick the table will be loaded. So, I want to add a dropdown multi selector filter to all the ...
0 votes
0 answers
39 views

Horizontal selector for Xamarin Forms

I am trying to implement a Horizontal selector for selecting notes for my notes app as indicated in the attached image on Xamarin Forms and don't know the way. Please help! I tried to do it using list ...
0 votes
0 answers
29 views

Access DOM installed library in Vue3.js

i using intl-tel-input library in Vue3js project. It has ( unofficial ) select input ( created by div and javascript ) like this : select option are li.iti__country and I want call function after ...
1 vote
1 answer
30 views

Apply tinymce 6.0 to a class of textareas

In tinymce 5.0, my init contained mode : "specific_textareas", editor_selector : "mceEditor", in order to convert any textarea with the class "mceEditor" into a tinymce ...
  • 162
0 votes
1 answer
74 views

Angular @ViewChild Directive stays undefined

[EDIT: SOLUTION] I did not import the right Directive in my app.module.ts After including like the following, it just works and does not return undefined. :) import { PlaceholderDirective } from '....
0 votes
0 answers
21 views

Angular autogeneration of components from json overwritten datas

I've created an automatic component generator system via a json file. I need to inject the same component several times by automatically recovering the unique id (which I can't anticipate or guess), ...
0 votes
0 answers
65 views

populating an input element within an flt-glass-pane in WebView

I have an Android application that has a WebView in it, it opens an external website that is supposed to be populated by my application. There is no issue populating it using javascript (document....
  • 11
0 votes
0 answers
24 views

Copy & Pasted CSS from Chrome and the CSS does not exist

I am currently trying to write a code that scrapes a mileage after logging into a specific website using CSS selector and bs4 in Google Colab (python). I have copied and pasted the CSS of the value ...
0 votes
1 answer
164 views

How can I send multiple messages to a server, and have that server receive multiple messages instead of one big message [Python, Sockets]

To clarify I have a script that: sends some value to a server receives a response from the server sends a timestamp back to the server and close the connection I would expect each message, bytes, ...
0 votes
0 answers
42 views

I have a question on Nio's selector and threads part

Please help . When you first start the server, create a thread pool in advance (5 threads) and create 5 selectors to read, pass one selector to each Runnable, and immediately send the submit function ...
  • 1
0 votes
0 answers
71 views

xpath find a CSS attribute from DOM not inline

See my code here of my scenarioI have this scenario and I need to use xpath to validate the image, and the gradient colors are present. I tried all kind of xpath combination but still getting errors ...
1 vote
1 answer
348 views

playwright select button by next element

<div class="mysel"> <button class="btn"></button> <div class="iconName">James</div> </div> <div class="mysel"> ...
  • 385
0 votes
0 answers
29 views

Running timer and functions at background in Bluetooth App(Swift after iOS 13)

I have an app which is looking for bluetooth devices at background and there is a timer which looking for devices and some other functions to notify user. When the app is running, the timer and ...
0 votes
1 answer
70 views

How can I perform Acumatica BQL JOINs in PXSelector?

I have a Selector field where I want to show 5 columns from 3 different table. They are The Item, item desctiption, item class, item class description and the default warehouse. I have found the DACs ...
  • 21
2 votes
3 answers
406 views

Is there any programmatic workaround to perform chain of actions on selectors in playwright?

According to the official documentation, the playwright doesn't support chaining the actions you perform on a single selector like, alternatively, Cypress allows for. As a result, your code file grows ...
0 votes
1 answer
27 views

Overridden CSS Style still effecting element

I have an imported set of CSS styles. One of those styles is the list-style-type: none; that you can see in the screen-shot. I'm implementing a component right now where I need numbered list items for ...
0 votes
0 answers
44 views

kubernetes ClusterRole aggregationRule - clusterRoleSelectors by name

I was trying to create a ClusterRole based on the default view ClusterRole, and apply extra rules to the new ClusterRole. The problem is that the default system clusterRole view does not have a unique ...
  • 455
0 votes
1 answer
52 views

CSS: Hide parent if child is :empty? [duplicate]

I want to hide the parent <li> tag if its child <a> tag is empty. So in the following example I would like to hide the second <li>: <ul> <li> <a href="test1....
  • 573
0 votes
1 answer
21 views

Best approach to select particlular cell value for data extarction is XPATH?

Hi I am working a huge set of data tables and I am trying to optimized to grab the value form those tables. There are many ways to select element. What is the best approach to grab particular cell ...
0 votes
1 answer
31 views

How can I add arguments to a selector passed as a parameter in ObjectiveC

I'm trying to write a method in Objective C which takes a @selector as a parameter. It works fine - provided that I don't want the selector itself to have parameters (and I do). - (void) ...
  • 1,142
0 votes
0 answers
17 views

how can I apply a fixed selector in a table so I can apply event when click a row in flutter

I want to get access to the item index that is under the the selector button so I can get its details like the following image? the selector position is fixed at the middle of the screen while the ...
0 votes
1 answer
133 views

Cypress jQuery selector bar:contains('foo') doesn't work

I tryıng to use jQuery selectors but it doesn't work. I use Cypress so sometimes I need to use jQuery selectors to find elements by text or some unique generated numbers. (instead of cy.contains() i.e....
0 votes
0 answers
16 views

Click Facebook Follow Button using chrome frame selector

Good day everyone, i am trying to click fb follow button using my customize button but i cant do it because of domexception var iframe = document.querySelector("[title='fb:like Facebook Social ...
1 vote
1 answer
54 views

How do I change the select capability on all columns using DT table in Shiny App?

I want to have the select capability only on the second column using DT Package in shiny apps. In this post this question was asked Using the above solution in DT package in shiny is not working for ...
  • 11
0 votes
0 answers
28 views

Python asyncio default selector that works best with PyZMQ

In Python asyncio, Python on Ubuntu selects the best performing selector when we import selector: import asyncio loop = asyncio.get_event_loop() If we are to import PyZMQ and use any communication ...
  • 419
0 votes
2 answers
22 views

Select element before it css issue

I need to select the paragraph before the read more so that I can expand the height to the full height of the paragraph. I don't know how I can select it with the :focus selector .main { ...
-1 votes
1 answer
21 views

Python Selenium selectors - Dropdown icon?

I have this drop icon element. How do I need to use it with the Xpath? or which I need to use? is a burger dropdown menu. I don't know how to use it with the XPath
1 vote
1 answer
144 views

Select the next data cell given a data cell with Playwright

There are several tables on a page. I'm. trying to get City/Town. <table class="table" style="margin-top: 35px;"> <thead> &...
0 votes
1 answer
29 views

Custom radio selector not functioning

I've created this custom radio selector for my site and the first radio selector is working but the 2nd field isn't selecting. Is there another class that I need to create or have each input named a ...
2 votes
2 answers
38 views

Is there a general selector for a specific nth of typ and all nths after? [duplicate]

I am using a data scraper and I know just enough code to not know what I'm doing. The scraper is free and has a crawl limit. There is no option to resume the crawl from end point. I need to scrape all ...
-1 votes
1 answer
30 views

how to get attributes of nth-child of found element

I'm trying to figure out a way to get to the attributes of an nth child of an object only known to me by its index. HTML structure is as follows: <form id="myForm"> <!-- known ID --&...
1 vote
2 answers
57 views

CSS Universal Selector (*) not showing a border with parent element

I have made a class ".ancestors" and assigned it to both parent and child divs. This class is showing border around the child div but not around the parent. Can someone please advise why is ...
-1 votes
2 answers
78 views

Selector.select() is not blocking after a SelectionKey.isReadable is read

I have a Socket that connects to a ServerSocketChannel which passes off to another Selector. The client socket sends a one time message of 8 bytes, I successfully read it, but then selector which I ...
  • 3,816
1 vote
1 answer
100 views

Selector type of expression is ambiguous without more context

I'm trying to get ARSessionDelegate method using selector, but im getting this error: Type of expression is ambiguous without more context There is mine code: #selector(ARSessionDelegate.session(_:...
  • 35
1 vote
1 answer
57 views

CSS how to select all elements with a given class taht do not contain an element of another class

In the following code I would like to hide the button that has the copy-button class that does not contain an <i> element with the class nice <!DOCTYPE html> <html> <head> <...
  • 14.7k
1 vote
1 answer
32 views

Selector.select() not being unblocked even after I register a channel ready to read from another thread

I am creating a server to handle many different connections at the same time. I create two Selectors, on for the serverSocketChannel to accept and then the other for the connections to read data. The ...
  • 3,816
-1 votes
1 answer
40 views

2 Selector by jQuery in same page

I tried add 2 Selector by JQuery but it's not display the content, if I added just one it's work fine so could you please help me to fix this issue the following is codes the idea of this script ...
  • 5
0 votes
1 answer
289 views

the document.querySelector() can selects the attributes also?

I recently saw a code voucher that surprised me a bit and I would really like to understand. Can the document.querySelector() take a parameter, an attribute to make selections : const tabs = ...
2 votes
0 answers
31 views

Selector not firing if keyboard is visible

I currently have a UIView with a TableView and a TextField. In my table view I create EndTimeCell (below), which have a selector set to trigger on the UISwitch value change. However, if the keyboard ...

1
2 3 4 5
78