Funktionierend
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// See https://aka.ms/new-console-template for more information
|
||||
|
||||
using OpenQA.Selenium.Chrome;
|
||||
using SeleniumUndetectedChromeDriver;
|
||||
//using SeleniumUndetectedChromeDriver;
|
||||
using OpenQA.Selenium;
|
||||
using System.Net;
|
||||
using System.Diagnostics;
|
||||
@@ -38,8 +38,9 @@ namespace CardmarketBot
|
||||
ChromeOptions options = new ChromeOptions();
|
||||
options.AddArgument("start-maximized");
|
||||
//options.AddArgument("incognito");
|
||||
//options.AddArgument("disable-popup-blocking");
|
||||
options.AddArgument("disable-popup-blocking");
|
||||
options.AddArgument("force-device-scale-factor=0.8");
|
||||
//options.AddArgument("lang=en");
|
||||
IWebDriver cd = new ChromeDriver(options);
|
||||
|
||||
//driver.GoToUrl("https://www.cardmarket.com/de/OnePiece");
|
||||
@@ -189,7 +190,11 @@ namespace CardmarketBot
|
||||
|
||||
|
||||
// Artikeln
|
||||
element = cd.FindElement(By.XPath("/html/body/main/section/div/div[1]/div/div[5]/table/tbody"));
|
||||
var k = cd.FindElements(By.XPath("/html/body/main/section/div/div[1]/div/*/table"));
|
||||
//Debugger.Break();
|
||||
element = k[0];
|
||||
//element = cd.FindElement(By.XPath("/html/body/main/section/div/div[1]/div/div[6]/table/tbody"));
|
||||
//element = cd.FindElement(By.XPath("/html/body/main/section/div/div[1]/div/div[5]/table/tbody"));
|
||||
string artikeln = element.Text;
|
||||
kunde.Artikels = Helper.ParseArtikeln(element.Text);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user