Click here to Skip to main content
       

Visual Basic

 
GeneralRe: vb6 with ms access2007 database Pinmembertuticorinmano2-Jan-13 12:49 
QuestionShould be simple: incompatible types PinmemberAndreFratelli1-Jan-13 7:44 
AnswerRe: Should be simple: incompatible types PinmemberAndreFratelli2-Jan-13 0:27 
GeneralRe: Should be simple: incompatible types PinmemberGuyThiebaut7-Jan-13 22:34 
Questiondatagrid in vs 2012 Pinmemberjenkinsdjj30-Dec-12 20:22 
AnswerRe: datagrid in vs 2012 PinmvpRichard MacCutchan30-Dec-12 22:29 
GeneralRe: datagrid in vs 2012 Pinmemberjenkinsdjj31-Dec-12 0:40 
QuestionGetting innertext of HTML with </ br> tag between words PinmemberStonesteel26-Dec-12 22:57 
Greetings!
 
I am currently working in an automation to extract data from IE. I have a scenario where two page will be accessed, the first one is the page without username and password on it and the second one is the page with login page to log username and password...
 
I am currently working on a code where the condition is if the account is logged is as "none" and level as "Administrator", then the page will be accessed and will be directed to the specific url. but when the account is logged in as "none" and level as "Guest", then will be directed to the login page and username and password will be entered.. the problem is the value or the innertext I am extracting has a <br /> between words, how can I set the condition like this?
 
[HTML]<div id="userid">Account: none <br /> Level: ADMINISTRATOR</div>[/HTML]
[HTML]<div id="userid">Account: none <br /> Level: GUEST</div>[/HTML]
 
[CODE]If .Document.GetElementById("userid").innertext = "Account: none " & "<br />" & "Level: ADMINISTRATOR" Then
        .Navigate linktesturl
                Do While .Busy: DoEvents: Loop
                Do While .ReadyState < 4: DoEvents: Loop
                .Visible = True[/CODE]
         ....code continues....
 
I appreciate your feedback. Thank you. :)

AnswerRe: Getting innertext of HTML with </ br> tag between words PinmvpDave Kreskowiak27-Dec-12 8:49 
GeneralRe: Getting innertext of HTML with </ br> tag between words PinmemberStonesteel27-Dec-12 21:04 
GeneralRe: Getting innertext of HTML with </ br> tag between words PinmvpDave Kreskowiak28-Dec-12 4:41 
Questionthreading impliment PinmemberMichael Hulak25-Dec-12 17:58 
AnswerRe: threading impliment PinmemberDineshshp25-Dec-12 18:32 
AnswerRe: threading impliment PinmemberEddy Vluggen26-Dec-12 12:16 
QuestionHow to read list of local and network printers PinmemberKASR125-Dec-12 7:21 
AnswerRe: How to read list of local and network printers PinmemberEddy Vluggen25-Dec-12 8:30 
GeneralRe: How to read list of local and network printers PinmemberKASR126-Dec-12 3:38 
GeneralRe: How to read list of local and network printers PinmemberEddy Vluggen26-Dec-12 11:58 
GeneralRe: How to read list of local and network printers [modified] PinmemberKASR126-Dec-12 23:15 
GeneralRe: How to read list of local and network printers PinmemberEddy Vluggen27-Dec-12 4:28 
GeneralRe: How to read list of local and network printers PinmemberKASR127-Dec-12 7:26 
GeneralAdding an email notification module to my application. PinmemberKismetGerald24-Dec-12 13:01 
GeneralRe: Adding an email notification module to my application. PinmvpRichard MacCutchan24-Dec-12 23:07 
GeneralRe: Adding an email notification module to my application. PinmemberKismetGerald25-Dec-12 0:09 
GeneralRe: Adding an email notification module to my application. PinmvpRichard MacCutchan25-Dec-12 21:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.140826.1 | Last Updated 27 Aug 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid