Summary: When I try to go to the third page in a web site I'm trying to screen scrape using Selenium and Chrome I can't find any elements on the third page.
I see Html for 2nd page in Driver.PageSource.
Steps:
- Navigate.GoToUrl("LoginPage.aspx")
- Find username and password elements.
- SendKeys to Username and Password.
- Find and click on Submit\Login button.
- Web Site displays main menu page with two Link style menu items.
- Find desired menu item using FindElement(By.LinkTest("New Person System")).
- Click on link menu item. This should get me to the "Person Search" page (the 3rd page).
- Try to wait using WebDriverWait for element on "Person Search" page. This fails to find element on new page after 5-10 seconds.
- Instead of using WebDriverWait I then simply wait 5 or 10 seconds for page to load using Thread.sleep(5000). (I realize WebDriverWait is the better design option.
- Try to find link with text "Person".
- Selenium fails to find link tag.
I see desired "Person Search" page displayed in Chrome.
I see last page Html in ChromeDriver.PageSource.
- Chrome geckodriver.exe. Build 7/21/2017.
- NUnit 3.7.1
- Selenium 3.4
- VB
I used IE for another project with similar environment. Didn't have a problem getting to any page (once I coded Selenium correctly).
The web site I'm trying to screen scrape only supports recent IE version. I'm testing a legacy app for another project that requires IE 8. So using IE is out of the question.
Maybe I should try Firefox...