The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> VB.NET DOM help for HTML
post Jul 20 2019, 10:35 PM
Post #1

Group: Members
Posts: 8
Joined: 20-July 19
Member No.: 26,938

Hi guys we have to log in to bank account every day and either print off 1 page of our bank statement OR save the statement to CSV. I am trying to automate this process such that when our managers come in the 1 page bank statement has already by printed and is sitting on the printer (and we have saved the day to CSV).

There are no APIs that I can get hold off atm, so I am using VB.NET and the DOM. I can automate the login process, and select a specific bank account however some of my managers have access to several business known as different bank profiles. Basically I need to know how to select a specific value in the combo box however in the HTML its not a <SELECT> tag. Instead the banks uses profilelistview and each of the business's have a unique profile id, ie data-profileId="6767901001620df51020114442000005". I can drill extract this profile id but I don't know how to pass it. Its not like ?data-profileId="6767901001620df51020114442000005

<li id="Administration.CustomerProfile.GetAllProfilesWidget">
<div id="widget-222a94daa40b4845ab2b6171cceba92a" class="widget administration-customerprofile-getallprofileswidget" data-selected-profile-id="&quot;6767901001620151020114442000005&quot;" data-select-customer-profile-action="" data-set-flyout-visibility-cookie="" data-profile-list-view-url="" data-verifycustomerprofile="" data-switchtosuspendedprofilemessage="The profile you're trying to access has been suspended. Please select another profile or call us on 1300 655 505 for help." data-limitedaccessprofileswitchmessage="This profile is inactive or outside allowable access days. Please contact your Administrator for access." data-isemulationmode="False" data-analytics-nav="col-main">

<div class="administration-customerprofile-getallprofileswidget flyout-cell flyout-cell-open">
<a id="profile-switch-flyout" href="#" class="flyout-menu-toggle btn btn-small">LUWIN INVESTMENTS PTY LTD - Business banking
<span class="a11y-context">Click to open profile</span>
<img src="" alt="" />

<div class="flyout-below flyout flyout-menu"> <div class="customer-action-flyoutwrapper">
<ul class="flyout-menu-list">
<div class="selected-profile-item"
data-profileName = "MY COMPANY PTY LTD"
data-profileType="Business banking"
<span class="flyout-menu-heading">MY COMPANY PTY LTD</span>
<span class="flyout-menu-item">Business banking</span>


Attached thumbnail(s)
Attached Image
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Reply to this topicStart new topic
post Sep 20 2019, 12:18 PM
Post #2

Programming Fanatic

Group: Members
Posts: 1,675
Joined: 27-April 13
From: Edinburg, Texas
Member No.: 19,088

I've looked over the 1900 lines of code but I don't see what I'm looking for. There must be some kind of event listener to catch click events. The link you posted will not work as a stand alone link. All the required information is stored in data attributes. I've not written code of this type (because it's a bank?) so I'm not sure. If you had a event listener defined for 'a' links then the listener code could get all the data attribute info needed. Sorry I can't be of more help.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


- Lo-Fi Version Time is now: 13th November 2019 - 10:27 PM