Skip to content

Commit 023384f

Browse files
fix path to export button
1 parent 15a3d55 commit 023384f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

NotionWebsitePuppeteer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,11 @@ public void TriggerExport(List<string> workspaceSlug)
170170

171171
Thread.Sleep(5000);
172172
Console.WriteLine("Navigating to Export button...");
173-
IWebElement nextBtn = _driver.FindElement(By.XPath("//nav//div[contains(text(), 'Settings')]"));
173+
IWebElement nextBtn = _driver.FindElement(By.XPath("//div[@class='notion-sidebar']//div[contains(text(), 'Settings')]"));
174174
nextBtn.Click();
175175

176176
Thread.Sleep(3000);
177-
_driver.FindElement(By.XPath("//div[@class='notion-space-settings']//div[text() = 'Settings']")).Click();
177+
_driver.FindElement(By.XPath("//div[@class='notion-space-settings']//div[text() = 'General']")).Click();
178178

179179
Thread.Sleep(3000);
180180
_driver.FindElement(By.XPath("//div[@class='notion-space-settings']//div[text() = 'Export all workspace content']")).Click();

0 commit comments

Comments
 (0)