Skip to content

Commit

Permalink
Fixed another Login Issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Gieseke committed Jun 6, 2021
1 parent 220b4cb commit 844246c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MediaMarktBot/MediaMarktXboxBot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ 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]/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]")));
wait.Until(SeleniumExtras.WaitHelpers.ExpectedConditions.InvisibilityOfElementLocated(By.XPath("/html/body/div[1]/div[2]/section[1]/div/form/p/a/span")));

// go to xbox article site
driver.Url = "https://www.mediamarkt.de/de/product/_microsoft-xbox-series-x-1-tb-2677360.html";
Expand Down

0 comments on commit 844246c

Please sign in to comment.