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

How to find the first instance of a pdf file using HTMLElement?

void DownloadFile(object sender, WebBrowserDocumentCompletedEventArgs e) { HtmlElementCollection links = webBrowser1.Document.Links; foreach (HtmlElement link in links) // { if (link.InnerText.Equals("*.pdf")) { …
Kris Toledo
  • 41
  • 1
  • 5
0
votes
1 answer

Incompatible types error in HtmlElementDecorator(driver)

I've started study Yandex Html Elements framework. I do according to start guide https://github.com/yandex-qatools/htmlelements-examples/blob/master/htmlelements-junit-example/src/site/junit-example.md And stop in the beginning public class…
0
votes
1 answer

c# Document.All doesn't get currently displayed in webbrowser after a click

i opened an URL using webbrowser into a C# project framework 4. When i do: foreach (HtmlElement ele in webBrowser1.Document.All) { if (ele.GetAttribute("className") == "clickMe") …
inyourmind
  • 105
  • 1
  • 1
  • 9
0
votes
1 answer

Is it possible to include HTMLElements block inside another HTMLElements block

Could someone please clarify whether it is possible to include HTMLElements block inside another HTMLElements block.
0
votes
1 answer

Change the type of an html-element with jQuery

I want to change an h4-element to an h3-element. Is there any easy possibility with jQuery? Of course there is the .replaceWith-function. But the content of my h3-elemtent must not be deleted. Thanks!
Brotzka
  • 2,959
  • 4
  • 35
  • 56
0
votes
1 answer

No actions happened using htmlelements

currently i'm working on automated testing solution implementation. I decided to choose htmlelements but during this implementation i'm coding using clean webdriver+pagefactory to see the advantages of htmlelements. I'm not really good at coding…
0
votes
0 answers

Wrap a list of WebElements and present as a single WebElement

I am automating testing of a response web app and have an issue with multiple elements on the page with the same @FindBy selector where only one is visible at a particular screen resolution (in this case a logout button that 'moves' around the…
Andrew Sumner
  • 793
  • 2
  • 12
  • 29
0
votes
3 answers

Why does decorating HTML elements with 'runat="server"' not make them accessible from the code-behind?

According to this How to access html controls in code behind, I should be able to add 'runat="server"' to my html elements like so: ...and then access the html element by its ID from C#, like…
0
votes
2 answers

Htmlelements framework. NoClassDefFoundError exception appears on simple example

Today I've found nice example of how to build own test automation framework for web apllication using Selenium Webdriver, and get nice and easy understanding code and architecture. This example demonstrated using of Yandex Htmlelements…
Sančiezz
  • 81
  • 2
  • 11
0
votes
1 answer

c# windows form How received webbrowser contain ":" character full line in listbox?

I am want to scrapped webbroser to ":" all line. If finding : then scrapped full line with all line from the browser area. below code I am trying but not getting any result pls check & give me solution. if…
0
votes
1 answer

How received number in my textbox1 using windows form?

please see below html code in there I am want number in my textbox area. I am trying many process but still not getting any solution so please check html code with give me right solution. Number always going change when I am refresh page. Number…
0
votes
3 answers

Element + ID vs only ID in jquery?

div#some_id will scan through all the divs throughout the DOM. #some_id will pick up the ID directly from the DOM. So which is faster? $('div#some_id') or $('#some_id')?
Ajay
  • 4,199
  • 4
  • 27
  • 47
0
votes
1 answer

webbrowser table area td to How scraped information in textbox1?

I am want scraped information from website where available product file name & profile serial number. How I am scraped product serial number if always coming new serial & below process show html code?
 product file number  7269
        
0
votes
1 answer

c# windows form - How received td area data in my textbox or listbox?

your boss name after finish b tag Want received random generated name so we need this name in our textbox or list box area. Actually every loading time we see your boss name after coming new name so we just received name in our textbox area or list…
0
votes
1 answer

Web page to API : Make an API from HTML elements

Is it possible to retrive HTML elements, div for example, and make an API from it. For example, I want to make an API from http://www.tvguide.com/listings/, and take the listings div, and make an API. I mostly work in PHP, so a PHP answer should be…
Félix Desjardins
  • 3,223
  • 3
  • 21
  • 36