ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / HTML file functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Searches for elements whose "class" attribute matches a specific value in an HTML node.
Example
d is htmlNode
e is array of htmlNode <- d.FindElementByClass("Red")
Syntax
<Result> = <Element to handle>.FindElementByClass(<Sought Class attribute>)
<Result>: Array
Array of htmlNode elements that match the search condition.
<Element to handle>: htmlNode variable
Name of the htmlNode variable in which the search will be performed.
<Sought Class attribute>: Character string
Value of the "Class" attribute to be searched for.
Remarks
<htmlNode variable>.FindElementByClass respects the rules for "selecting" HTML elements according to their class(es):
  • search for the different classes separated by spaces; all the requested classes must be present ("AND" search).
  • case-sensitive search (generally, classes are in lowercase characters).
  • search ignoring duplicates.
Component: wd290html.dll
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/21/2023

Send a report | Local help