Questions tagged [htmlelements]

Html Elements is a Java framework providing easy-to-use way of interaction with web-page elements in ui web tests.

Html Elements is a Java (actually there are .NET and php implementations) framework providing easy-to-use way of interaction with web-page elements in web-page tests. With the help of the Html Elements framework you can group web-page elements into blocks, encapsulate logic of interaction within them and then easily use created blocks in page objects.

You can find useful documentation and examples in project repository https://github.com/yandex-qatools/htmlelements

140 questions
2
votes
1 answer

C# WebBrowser can't expand all HtmlElements

I have a problem crawling a web page because C# webClient class and webBrowser class cannot retrieve all the child elements in the Html source. When I search in the code from Chrome or even from iExplorer I can expand all the HtmlElement nodes, but…
2
votes
2 answers

Webbrowser table innertext numaric data how show in textbox?

I have posted my HTML below. In which I want to get the Number value from within my textbox area. I've tried several processes and I'm still not getting any valid solution. Please check my HTML and code snippet, and show me a possible solution. The…
2
votes
1 answer

How to create own TypifiedElement

How to create own TypifiedElement for using it inside HtmlElement? I created own CustomElement public class YesNoRadio extends TypifiedElement { protected YesNoRadio(WebElement wrappedElement) { super(wrappedElement); } .... //…
Funker
  • 23
  • 2
1
vote
1 answer

How to dynamically create HTML elements in JavaScript

I have an HTML page and I want to show the chat content between two person, the chat box is like this: let data = { "lyrics": [{ "line": "line 1 start", "position": "r", "time": 4.5 }, { "line": "answer 1", …
1
vote
1 answer

Why does typechecking with 'instanceof' works differently for logical not operator and strict false equality check?

I have the following code: function handleIndexClick(event: MouseEvent) { if (event.target instanceof HTMLElement === false) { return; } // here will be a type error: Property 'dataset' does not exist on type 'EventTarget'. if…
aantropov
  • 88
  • 5
1
vote
1 answer

Exclude elements from Xpath groups

I have a very complex HTML of a website. I want to select multiple groups of elements by relative Xpath. For example: //div[@class="something] | //span/div | //div/span/div[@class="otherthing"] Once I have all elements selected I want to exclude…
Tocy777
  • 56
  • 8
1
vote
1 answer

How can I get an HtmlElementCollection from webview2

My old WinForm application used HtmlElementCollection to process a page HtmlDocument doc = Browser.Document; HtmlElementCollection elems = doc.GetElementsByTagName("table"); HtmlElement a = elems[0]; int[] Hucrn = new…
1
vote
0 answers

Uncaught SyntaxError: Unexpected identifier when using HTMLCollectionOf

This is the line that gives me the error: var modalList = document.getElementsByClassName("modal") as HTMLCollectionOf; This was based off a HowTo tutorial found here, but my page will have multiple modal images so I changed a few…
Ryolu
  • 523
  • 3
  • 16
1
vote
2 answers

HTMLOptionElement: onclick event doesn't trigger

I want a select element to contain one default option that shows a popup when selected. So I've created HTMLOptionElement and add an event to onclick event listener but the event doesn't trigger when the option is clicked. Here is my code: const…
1
vote
1 answer

cheerio .text() returns empty string

I'm trying to scrape this html with node js and cheerio to get 72 from the span tag. However, when I put the selector it returns nothing (empty string). in this case, I want that 72 which is in the span tag and I will put part of my code and…
MRK
  • 87
  • 1
  • 8
1
vote
1 answer

How to remove a child from a puppeteer/playwright JSelement node and then fetch innerText

I'm able to fetch the cell using playwright/puppeteer. I want to capture the following two values separately - Date and the status. I have the following code: let allCells = await allRows[0].$$('[role="cell"]'); let ele = await…
Curious101
  • 1,538
  • 2
  • 18
  • 36
1
vote
4 answers

How can I figure out what size an HTML Element will be? (tween size as element added)

I'm pretty sure this is currently infeasable. I have an animation that involves an element moving from an absolute position to an inline one. For reasons, I can not know how the container is sized, nor how the element I'm animating is sized. What I…
Seph Reed
  • 8,797
  • 11
  • 60
  • 125
1
vote
1 answer

how to queryselector a template object from javascript

Basically, I want to querySelect a