I am writing automation scripts for Dynamics 365 using Webdriver with C#.
All is good till I login and visit first (a list).
Test script clicks on one item in first page and page navigates to another page (ok)
Now, when I try to read any field in next page I cannot.
I found that

string pageSource = driver.PageSource; // returns  from  page,
string pageUrl = driver.; // returns correct/ url of the browser.

As mentioned in
I have waited enough for the page to be loaded completely before accessing it.

To add:
I tested by accessing an in previous page which is not in current page. And I could read and click it.

Source link https://sqa.stackexchange.com/questions/35451/selenium--object--page-source-from-previous-page-of--but-pa


Please enter your comment!
Please enter your name here