Français
Ouvrir dans Telegram

Fil de discussion سلام

6 messages · –
P
Photo
سلام دوستان ما از یک سایتی میخواستیم لینک هایی رو ویوو بزنیم، وقتی توی حالت عادی و توی لپ تاپ خودم اجرا میکنیم همه چی اوکیه ولی وقتی هدلس میکنم تا توی سرور اجرا بکنیم، وقتی لینک باز میشه یک نوتیفیکیشن "فیک" میاره که دقیقا شکلش مثل نوتیف های عادیه و هیچ کدی نداره اصلا که بشه زد و ردش کرد و موندیم توش که چجوری ردش بکنیم کسی تجربه ای داره تو این زمینه؟ ک بشه ردش کرد یا چیزی انجام داد که این اتفاق نیفته
      1. H
        چه نیازی به رد کردن این نوتیف هست ؟ اگر میخوای skip add رو بزنید . آی دی یا کلاسش رو بردارید . کلیک کنید . مگه تو سلنیوم باید این نوتیف رد بشه تا کلیک کنه ؟
        1. P
          یک نوتیف که برای مرورگر هست توی allow هست همیشه انگار وقتی شک میکنه که ویوو فیک هست این نوتیف رو نشون میده باید حتما allow زده بشه تا بره وبسایت اصلی و درامدش رو برای ما حساب بکنه
  1. H
    import time from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC options = webdriver.ChromeOptions() options.add_argument("start-maximized") options.add_experimental_option( "prefs", {"profile.default_content_setting_values.notifications": 1} ) driver = webdriver.Chrome(chrome_options=options) driver.get("link") time.sleep(1) irams = driver.find_elements_by_tag_name("iframe") iframeId = irams[2].get_attribute('id') driver.switch_to.frame(iframeId) time.sleep(10) buttons = driver.find_elements(By.XPATH, "//*[contains(text(), 'Allow')]") for btn in buttons: btn.click() driver._switch_to.default_content() nm = driver.find_elements_by_class_name("mwButton")[0] time.sleep(10) nm.click()
PPython + Linux ExpertsPython + Linux Experts@PythonLinuxExperts · groupe · Technologie
4 287membres20écrivent en 30 jours
Fil de la communauté Ouvrir dans Telegram

Un fil public ouvert issu de l'index de recherche ChatCrawler — « le Google du Telegram public » ; actualisé à mesure que la communauté est explorée. Les heures sont en UTC.

Contenu public uniquement, API officielle de Telegram. À propos · FAQ · Limites de l'index · Retirer une page · Catalogue · Recherche · Comment nous comptons