Is there any way to fetch second webpage url after navigating from one page to another on chrome browser?

            string sCurrentURL;
            string sExpectedURL="http://www.xyz.co/";
            BrowserWindow _bw = BrowserWindow.FromProcess(proc);              
    string sURL=UIMap.UIWindow.Uri.ToString();
            HtmlHyperlink objLogoLink = UIMap.UIWindow.UIDocument.UIHyperlink;          
//Navigates to "http://www.xyz.co/" link after click on logo
            Mouse.Click(objLogoLink);            
             Playback.PlaybackSettings.ShouldSearchFailFast = false;
//At this line of code I am getting issue on chrome browser
            sCurrentURL = _bw.Uri.ToString(); 
            Assert.IsTrue(sCurrentURL.Equals(sLogoURL));
            _bw.NavigateToUrl(new Uri(sURL));
After clicking the logo link of the page, it navigates to other url. I am successfully able to get the url for firefox and IE.  I am facing issuein chrome.
Any suggestions?
             

Do you use this extension tool Selenium Components for Coded UI Cross Browser Testing?
Yes I used this extension tool. I am using only BrowserWindow name as search property.
Error : 
stale element reference: element is not attached to the page document
  (Session info: chrome=41.0.2272.89)
  (Driver info: chromedriver=2.8.241075,platform=Windows NT 6.1 SP1 x86_64)
I resolved this issue using separate BrowserWindow object for each page. But i am not able to understand why BrowserWindow _bw object created from process object ( BrowserWindow
_bw = BrowserWindow.FromProcess(proc); ) get detach when navigate to other page....
 string sCurrentURL;
 string sExpectedURL="http://www.xyz.com/";           
 string sURL=UIMap.UIWindow.Uri.ToString();
 HtmlHyperlink objLogoLink = UIMap.UIWindow.UIDocument.UIHyperlink;          
 //Navigates to "http://www.xyz.co/" link after click on logo
 Mouse.Click(objLogoLink);
 sCurrentURL = UIMap2.UISecondPageWindow.Uri.ToString(); 
 Assert.IsTrue(sCurrentURL.Equals(sLogoURL));

Similar Messages

  • Is there any way in Adobe Reader to limit printing to only one page at a time?

    We have a large piece of internal knowhow in the form of a pdf document that we don't want users to be able to print in one go as it would risk the document leaving the premises. We are quite happy with users using print screen for single pages, but that doesn't really produce readable results.
    So ideally we'd like users to be able to select print, but when they do it should only allow 'print current page' or just print the first chosen page instead of the whole selection. For instance, selecting pages 123 - 145 should only print page 123.
    I've looked in to various areas already. We are delivering this document through a secured version of Adobe Reader via Citric application streaming, so are able to customise the config.js file any way we want, however I've looked through the Java Reference Guide and haven't been able to identify anything that might satisfy our requirement this.
    I've also looked in to Document Actions such as "Document will print", but again (perhaps due to a personal lack of programming knowledge) am unable to find a way to fix the print option to a single page.
    Any ideas/suggestions much appreciated.
    Kind regards,
    Kaan

    The sponsor is not happy for low res printing either. As an organisation we should be looking at DRM more closely, and we've added to the requirement with this problem. We are also going to look in to the option of attaching metadata and scanning that at our exit points (e-mail, printers, usb's, etc.) so that users have free reign internally but can't send sensitive documents out. Obviously it's all going to be very expensive!
    Cheers for the respones guys.

  • HT202780 Is there any shortcut of OS X to move active window from one screen to another?

    I know that in Windows, I can use Alt+Shift+left/right arrow to do so. Any similar shortcut in OS X?

    Hey leroydouglas, thanks for your reply! I'm afraid that the article you given don't include the answer I want. I had went through the article and hadn't found the answer of my question. Anyway, thanks all the same!

  • I've copied my itunes library onto an external hard drive.  Is there any way I can do this and delete songs from my PC without also deleting from the external drive? Already lost two songs!!!

    I've copied my itunes library onto an external hard drive.  Is there any way I can do this and delete songs from my PC without also deleting from the external drive? Already lost two songs!!!  I just want a back up - using a work PC and don't want others accessing my songs.  Hope someone can help.  Thanks!

    I see. To get a better idea of what is being stored where please download and run the script iTunesInfo which should output something like this:
    I'm interested in the block of 4 results starting ITL location. If your profile name shows up somewhere replace it with <Name>.  It is also worth checking under Edit > Preferences > Advanced to see where iTunes thinks your media is supposed to go. My script estimates the setting based on the location of the first media file it can actually find.
    tt2

  • Is there any way i can transfer all my SMS messages from my 3GS to my 4 ?

    is there any way i can transfer all my SMS messages from my 3GS to my 4 ?

    Use iTunes to backup files from your old ipod first then transfer to the new iPod. Please
    follow the steps in How to transfer your backup from one iOS device to a new device.   By the way, if you don't have the iTunes, you can use this iPhone transfer program. It help you to transfer sms and contacts from iPhone.
    Hope it helps.
    You can use http://www.google.com to search more

  • Is there any way to get the query used in discoverer from backend??

    Hi All,
    I am new to dicoverer.
    Is there any way to get the query used in discoverer from backend??
    Thanks,
    Sachin

    Hi,
    you can view the SQL from within the discoverer menu:
    in desktop: View-> SQL Inspector
    in Plus: Tools-> Show SQL
    The SQL in the DB tables is encrypted so it's a problem getting it from there.
    You can export the workbook into SQL but it is not working for every worksheet (subquery, inline pivot tables...)
    you can create a batch file to export them all using the output of this script:
    select null,null,'echo off'
    from dual
    union all
    select distinct
    qs.qs_doc_name Workbook_name,
    qs.qs_doc_details Worksheet_Name,
    'start /wait <path>\dis51usr.exe /connect '||'&p_user_name'||'/'||'&p_password'||'@'||'&p_env'||' /apps_user /apps_responsibility "&responsibility" /opendb '||
    chr(34)||qs.qs_doc_name||chr(34)||' /sheet "'||qs.qs_doc_details||'"'||' /export SQL "C:\Export Discoverer SQL\'||qs.qs_doc_name||'-'||qs.qs_doc_details||'.sql" /batch'
    from eul_us.eul5_qpp_stats qs
    where qs.qs_doc_name is not null
    --order by 1,2
    union all
    select null,null,'echo off'
    from dual
    union all
    select null,null,'exit'
    from dual

  • Is there any way to write to a socket after shutting it down?

    Guys is there any way to write to a socket after using the shutdownOutput() method?
    I get this complain at runtime
    java.net.SocketException: Cannot send after socket shutdown: socket write error

    Your question embodies a contradiction in terms. Shutting down the socket means that you're telling the other end there is no more data. So you can't send more data. And even if you could, the other end wouldn't read it, because it would think it had already reached end of stream. Because that's what you told it.
    If you don't want HTTP keep-alive, turn it off via the appropriate HTTP header.
    You should be using HttpURLConnection for this, not a Socket. That takes care of your reading problem: it knows how to process the content-length header.

  • Is there any way for my ipad to piggyback the internet from my iphone when i am not in a wifi area... The guy at the ATT

    Is there any way for my ipad to piggyback the internet from my iphone without having to purchase a "plan" from ATT&T....The guy at the store said that I had to purchase a new plan with "so much" GB per month and loose my unlimited amount that I am grandfathered into with my current plan... any thoughts?

    Unfortuneatly, you would have to give up your unlimited plan. In the US you would have to get the 2GB plan for $25 and add the teathering plan for $20 more.  The teathering plan would give you another 2GB of data for a total 4GB.

  • Is there any way to disable Home Sharing on all computers at one time? I've put Home Sharing on 5 computers already, and I don't have one of the computers anymore.

    Is there any way to disable Home Sharing on all computers at one time? I've put Home Sharing on 5 computers already, and I don't have one of the computers anymore.

    nm
    Copy/Pasted:
    You can deauthorize all computers connected to your Apple ID if you've reached the maximum five authorizations:
    Click iTunes Store on the left side of iTunes.
    If you're not signed in to the store, click the Account button, then enter your account name and password.
    Click the Account button again (your Apple ID appears on the button), enter your password, and then click View Account.
    In the Account Information window, click Deauthorize All.
    Note: You may only use this feature once per year. The Deauthorize All button will not appear if you have fewer than two authorized computers. If you need assistance on using this feature, please contact iTunes Store support via email (http://www.apple.com/support/itunes/store/).
    EE

  • Is there any way to get your pictures back after updating to maverick?

    is there any way to get your pictures back after updating to maverick?

    Is Aperture not launching at all? Then update Aperture like Ernie recommended. You'll need version 3.5.1, or 3.4.5 with Mavericks. If you have any Aperture 3 version, you should be able to update for free.
    After updating Aperture, make sure you have a backup copy of your Aperture library, before opening it in the new version.  Click the Aperture library, to open Aperture on your library.
    Or, is the problem, that Aperture opened on an empty library? Then check the file system on the drive with your Aperture library. It may have the wrong formatting. Then move your Aperture library to a drive formatted MacOS Extended (Journaled). Click the

  • Is there any way to get your pictures back after updating your phone

    s there any way to get your pictures back after updating your phone

    Did you fail to import them to your comuter before updating?
    If for some reason you did fail to do this, then they are very liekly gone.
    You can try restoring from backup.

  • I am setting up a new Time Capsule to replace another hard drive.  Is there any way to include the the Time Machine history from the old drive on the new Time Capsule?

    I am setting up a new Time Capsule to replace another hard drive.  Is there any way to include the the Time Machine history from the old drive on the new Time Capsule?

    Check item #18 of Time Machine FAQ, particularly the material in #3 of the "How to" section.
    By the way, you've been misled by poor field labeling on this forum into typing a large part of your message into the field intended for the subject.  In the future just type a short summary of your post into that field and type the whole message into the field below that.

  • Is there any way to play all files in a directory by one url?

    Hi all,
    I am testing fms this days, I have put all my files(such as 1.mp3,2.mp3...n.mp3) in my directory.
    I can play single file fine with url like this:
    rtmp://localhost/mp3/mp3:x/2
    but i want to know is there any way to play all files in my direcotry?
    for example, user click the play button, the player(smp) automatic plays all files in the directory, link windows media server.
    Should I use playlist? Or there is another better way?
    Thanks a lot.

    Hi,
    FMS do not directly take a directory to play files, the file names have to be fetched some way (through script if needed) to make a playlist and then the play command needs to be repeated as many times.
    Thank you !

  • Is there any way to set the default for *.doc document so that Pages opens them automatically?

    I have a number of Ms Word documents because I used to have Word for Mac before the last OS release.  Now, of course, when I double-click on them, I get a message saying that PowerPC isn't supported.
    Now Pages will open these files.  Is there any way to change the default for *.doc files so that a double-click will open them in Pages? 
    (Instead of me going to the trouble of finding out where they are actually located on the hard drive so that I can open pages and say - here, open this file--even though you didn't create it--)

    Click on a .doc file and type Cmnd I to open Get Info. In the Open with: menu select Pages, then click on Change All…
    Walt

  • Is there any way to retrieve a previous backup after the reset version has backed up?

    My phone recently freaked out and went into safe mode and when i went to back it up to the most recent back up, i accidentally set it up as a new iphone.. then it backed up to my computer which erased the most recent back up i wanted... Is there any way to get that back now? I lost over a year of pictures of my daughter and i'm pretty upset about it.

    I'm in the same situation as a lot of people. Whenever my iPhone 4 updates, it locks into sync mode and then I continuously lose my important data (contacts & photos etc) and recent backups replace more important backups, without asking for permission to do so.
    As this has happened before, I make regular backups. Yesterday it showed one of these recent backups, but this has been replaced with todays, which is a new installation.
    Is this the same with the new iPhones? Are Apple trying to encourage people to over to new iPhone, with more compatible software?
    I really need help with this, as it keeps happening and I spend a lot of valuable time trying to rectify it.

Maybe you are looking for