Skip to content

Commit

Permalink
Updated Login XPath
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Gieseke committed May 31, 2021
1 parent 5eb20d2 commit 220b4cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MediaMarktBot/MediaMarktXboxBot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ public void button1_Click(object sender, EventArgs e)
element = driver.FindElement(By.XPath("/html/body/div[1]/div[2]/div[2]/header/div/div[2]/div[5]/button[1]/div/span[1]"));
element.Click();
//click on "Anmelden"
wait.Until(SeleniumExtras.WaitHelpers.ExpectedConditions.ElementIsVisible(By.XPath("/html/body/div[1]/div[2]/div[2]/header/div/div[2]/div[5]/div/div/div/button")));
element = driver.FindElement(By.XPath("/html/body/div[1]/div[2]/div[2]/header/div/div[2]/div[5]/div/div/div/button"));
wait.Until(SeleniumExtras.WaitHelpers.ExpectedConditions.ElementIsVisible(By.XPath("/html/body/div[1]/div[2]/div[2]/header/div/div[2]/div[5]/div/div/div/div/button[1]")));
element = driver.FindElement(By.XPath("/html/body/div[1]/div[2]/div[2]/header/div/div[2]/div[5]/div/div/div/div/button[1]"));
element.Click();
// wait until login windows disappeared / user logged in and entered account details
wait.Until(SeleniumExtras.WaitHelpers.ExpectedConditions.InvisibilityOfElementLocated(By.XPath("/html/body/div[1]/div[1]/div/div[2]")));
Expand Down

0 comments on commit 220b4cb

Please sign in to comment.