Questions tagged [htmlelements]
Html Elements is a Java framework providing easy-to-use way of interaction with web-page elements in ui web tests.
htmlelements
140
questions
0
votes
0
answers
69
views
instanceof HTMLElement doesn't recognize prototype of HTMLElement created in jsdom test
I try to test a function recordItemColor but no matter what I try, the checks for instanceof don't recognize the Object.prototype type.
I tried a lot, but nothing works. Maybe it is something about ...
0
votes
0
answers
53
views
How to use license of gantt-chart library from smarthtmlelements
Given that I have the license key for gantt-chart library by HTMLELEMENTS. I want to use that license to my project but there is no clear way found on the official docs.
https://www.htmlelements.com/...
-1
votes
1
answer
142
views
How can I locate elements in Selenium to search for Google Place IDs in the search box?
I'm trying to locate the searchbox in Google Place IDs website, and I tried By.ID, By.CLASS_NAME, By.XPATH but I failed.
place_id_url = "https://developers.google.com/maps/documentation/...
0
votes
1
answer
32
views
get value from HtmlInputElement and check with user pass
i want to get this value and check with exist user password:
const Users =[{
userName: 'Hasan1934',
password: 'Qwx32dksa'
}]
and Input value :
const UserName = document.getElementById("...
1
vote
1
answer
90
views
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":...
0
votes
0
answers
120
views
How can I change elements position in a JS list?
I was trying to sort (based on dates) the elements in an array using the insertion sort algorithm, I think the problem is due to the nature of the element in the list, because when it comes to var x = ...
1
vote
1
answer
117
views
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' ...
1
vote
1
answer
67
views
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="...
0
votes
1
answer
60
views
No index signature with a parameter of type 'string' was found on type 'HTMLScriptElement'
I have an issue with the type of attributes of HTMLScriptElement.
In the below code, the issue come at line:
script[attribute.name] = attribute.value ? attribute.value : true
with the hint: "...
0
votes
1
answer
452
views
creating a new element in the html dom using foreach and assigning a class to it
i have an html structure, I want to change the text element using javascript in this structure, I want to create a new element and add a class in it. But it doesn't work
HTML CODE
<div class=&...
0
votes
1
answer
367
views
C# Getting Attribute Value from HtmlElement
I am getting an HtmlElement from a click.
HtmlElement element = WebBrowser.Document.GetElementFromPoint(e.ClientMousePosition);
This neatly returns an
HtmlElement
with Id (loginUserName), OuterHTML ...
0
votes
1
answer
93
views
Catching anchor element using SHDocVw.InternetExplorer
I want to catch the anchor element in website via vba.
I tried both as an MSHTML.IHTMLAnchorElement and MSHMTL.IHTMLBUttonELement but either way gives an error on Set line. Can anyone describe what's ...
0
votes
1
answer
288
views
Using bare import via Typescript Compiler Paths opion fails to resolve type on class extends HTMLELement
Typescript,
When I import Component using a complete path, typescript compilation succeeds:
import { Component } from "../node_modules/@browser-modules/web.component/lib/component.js"
...
2
votes
1
answer
263
views
Extracting repeated class with rvest html_elements in R
how are you? I am trying to extract some info about this sportbetting webpage using rvest. I asked a related question a few days ago and i get almost 100% of my goals. So far , and thanks to you, ...
0
votes
1
answer
698
views
React HtmlElement Micro Front end is not reloading in Shell Application
I am trying to inject below react mfe into another angular shell application. But, it is loading first time, but when they hide or remove from dom and then again it is not able to load.
Can you please ...