from selenium import webdriver
from selenium.webdriver.common.by import By
import numpy as np
import pandas as pd
from bs4 import BeautifulSoup
from selenium.webdriver.support.ui import Select
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.chrome.service import service
from selenium.webdriver.chrome.service import Service
import time
from webdriver_manager.chrome import ChromeDriverManager
url = "https://wuzzuf.net/search/jobs/?a=spbg&q=data%20analysis"
d = webdriver.Chrome(service=Service(ChromeDriverManager().install()))
d.get(url)
print(d.current_url)
h= d.find_element(By.XPATH, '/html/body/div[1]/div/div[2]/div/div/div[2]/div[1]/div/div[1]/h2/a')
h.click()
print(d.current_url)
#Job_Description =d.find_element(By.XPATH, '/html/body/div[1]/div/main/section[3]/div')
Job_Description =d.find_element(By.XPATH, '/html/body/div[1]/div/main/section[2]/div[5]/span[2]/span')
Job_Description
Hi everyone I have a problem with selenium library I am collecting data about the job of a data analyst from the Wuzuf website, but some of the data is not found on the page, so I click on the job to enter the job link and collect the data. The problem that I am facing when I enter the job link and collect data, an error occurs, knowing that the browser opens a new page when activating the code click. I hope to find a solution