示例#1
0
        List <The100FriendLink> GetCurrentFriendLinks(IWebDriver driver)
        {
            driver.Navigate().GoToUrl(The100Api.BuildUserUri(_credentials.UserId));

            var links = driver.FindElements(By.XPath("//div[@id='user-profile-friends-tab']/div/h4/a[1]"));

            return(links.Select(f => new The100FriendLink(f.GetAttribute("innerHTML"), f.GetAttribute("href"))).ToList());
        }
示例#2
0
 void NavigateToDashboard(IWebDriver driver)
 {
     driver.Navigate().GoToUrl(The100Api.BuildUserDashboardUri(_credentials.UserId));
 }