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
0
votes
1 answer

find index of string in webbrowser from htmlelement.innertext

I want to find string location in web browser and then edit that later if user want, I can find number of string with this code public int SearchEle(HtmlElement ele, string txt) { int Find_Num = 0; int Location = 0; …
Sara
  • 209
  • 1
  • 3
  • 10
0
votes
0 answers

HtmlElement framework: is it possible to use dynamic locators

I use Html Elements framework and where is need to use following xpath: .//div/div[text()='" + id+ "']/a But @FindBy annotation doesn't support dynamic locators. Is where any way to use them in Html Elements framework? Another example: There is…
khris
  • 4,809
  • 21
  • 64
  • 94
0
votes
1 answer

How use waits in Html Elements framework

I have tried to use Html Elements framework. Here are one of my blocks: @Block(@FindBy(id = "test")) public class FirstBlock extends HtmlElement { @FindBy(id = "nameS") private TextInput id; @FindBy(id = "saveBt") private Button add; public void…
khris
  • 4,809
  • 21
  • 64
  • 94
0
votes
1 answer

Hide part of text temporarily, show after user clicks certain element

I'm making a detail page about certain items. This detail page can contain large blocks of text, and the customer would like to only show the first 100 letters and then put a " ... more " at the end. When the user clicks this " ... more " the rest…
Timon
  • 1,003
  • 1
  • 9
  • 38
0
votes
1 answer

VB code detects only one HTML element and ignores the rest

I’m using VB to detect all textarea elements in a document and edit their value. This is the code: For Each Element As HtmlElement In WebBrowser4.Document.GetElementsByTagName("textarea") MsgBox(Element.GetAttribute("name")) If…
Remon Ramy
  • 167
  • 1
  • 11
0
votes
2 answers

HtmlElement get table with specific ID using C#

I have simple code which can read html and write data from table: foreach (HtmlElement hrel in testWebBrowser.Document.GetElementsByTagName("table")) { HtmlElementCollection coll2 = hrel.GetElementsByTagName("tr"); …
g3278739
  • 15
  • 1
  • 4
0
votes
2 answers

javascript return this after html element method runs setTimeout

Ok, so i have this code, adding a method (from what i understand) to the HTML element prototype: HTMLElement.prototype.fadeIn = function( seconds ) { var self = this; var miliseconds = seconds * 1000; var hold =…
Klimid1689
  • 111
  • 1
  • 3
  • 9
0
votes
0 answers

List of block, annotated by FindAll, searched many elements of first item

There is block, where BaseBlock inherits from HtmlElement @FindBy(css = "article.item") public class FlatCatalogItem extends BaseBlock {} There is other block, that include FlatCatalogItem @FindBy(xpath =…
0
votes
1 answer

C# HtmlDocument Extract Classes

I am writing some code to loop through every element in a HTML page and extract all ID and Classes. My current code is able to extract the ID's but I can't see a way to get the classes, does anybody know where I can access these? private void…
user1117617
0
votes
1 answer

HtmlElements finds 3 elements instead of only one in block when searching with XPath

I have a block: @Block(@FindBy(xpath = "//tr[contains(@class,'bg-success')]")) public class ShareContentRowBlock extends HtmlElement { @FindBy(xpath = "//h3[@class='fileName']/span/a") private TextBlock contentNameText; public String…
lanwen
  • 2,251
  • 1
  • 17
  • 30
-1
votes
1 answer

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 =…
-1
votes
1 answer

Get an object from a DomElement Node without frameworks

I have an element in my page:
Daniele Licitra
  • 1,520
  • 21
  • 45
-1
votes
2 answers

How i'm I suppose to use

I'm learning HTML online through my community college and is hard. "In this assignment you will create an HTML document that includes the div element to showcase your favorite movie. You will include the movie title, the year the movie was…
-1
votes
1 answer

c# HtmlElement How to programmaticaly select a file (from a HtmlElement accessed by a webBrowser) from a computer without race condition

im quite the newbie when it comes to htmlelement class! What i am trying to do right now is to fill a very very boring external web page with loads of data that already exists on the computer (the program is executed locally on said computer). one…
Eugen M
  • 51
  • 1
  • 6
-2
votes
1 answer

How to puts html elements inside of the template literal expression

let word = "kemal" let test = document.createElement("div"); test.innerText = `lorem la la bla bla "${word}"`; document.querySelector("body").appendChild(test); I want to make bold font to word variable. But I got an error about…
Hasan Tezcan
  • 1,116
  • 1
  • 11
  • 23
1 2 3
9
10