減錢優惠券 > Wish怎麽樣 > Wish優惠碼 > Wish優惠碼, selenium.common.exceptions.NoSuchElementE</h2> <div class="clear"></div> </div> <div class="main_l_l_d"> <ul class="coupons-list"> <li class="curled" style="border:0;"> <a rel="nofollow" class="curled-page" href="/coupon_wish"> <img class="mall_logo" width="106" rel="nofollow" src="/Public/Images/grey.gif" drc="http://images.jqyhq.com/Public/Uploads/202103/9e83036f43aec8f0cbb209e9812ed10c.jpg" > </a> <div class="detail clearfix"> <div class="description"> <div class="title"> <h3>Wish優惠碼,<!doctype html> <html lang=en> <head> <title>selenium.common.exceptions.NoSuchElementE</h3> </div> <div class="coupon_code_w">優惠碼: <span class="attachFlash code_details" qtype="coupon" rel="Wjhbwck" id="coupon_103486" mallid="5258" mallname="Wish" cname="wish" >Wjhbwck<div class="c_zz"> 激活優惠碼</div></span> <span id="content_btm2_coupon_103486" class="cover" >復制優惠碼</span> </div> <p class="discount min"><a rel="nofollow" href="/mout/5258" target="merch136417">過期時間:2022-11-05</a></p> <div class="coupon_code_w" style="font-size:14px;">折扣地址: <a class="pred" style="color:red;" rel="nofollow" href="http://www.jqyhq.com/cdout/103486" target="_blank"> 直達鏈接>></a></div> </div> </div> </li> </ul> <div class="clear"></div> </div> <div class="main_l_u"> <dl class="use_ins" id="use_ins"> <dt>優惠碼說明:</dt> <dd class="description"> Wish優惠碼,<!doctype html> <html lang=en> <head> <title>selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":"div.lmt__inner_textarea_container textarea"} (Session info: chrome=81.0.4044.138) Stacktrace: Backtrace: Ordinal0 [0x01385E93+2449043] Ordinal0 [0x012B8281+1606273] Ordinal0 [0x011AF889+522377] Ordinal0 [0x01148D18+101656] Ordinal0 [0x011648B0+215216] Ordinal0 [0x01159FE0+172000] Ordinal0 [0x0116326C+209516] Ordinal0 [0x01159E5B+171611] Ordinal0 [0x01141DD8+73176] Ordinal0 [0x01142E50+77392] Ordinal0 [0x01142DE9+77289] Ordinal0 [0x012CD7F7+1693687] GetHandleVerifier [0x01424576+522742] GetHandleVerifier [0x014242B4+522036] GetHandleVerifier [0x01439587+608775] GetHandleVerifier [0x01424DE6+524902] Ordinal0 [0x012C5BDC+1661916] Ordinal0 [0x012CF15B+1700187] Ordinal0 [0x012CF2C3+1700547] Ordinal0 [0x012E5135+1790261] BaseThreadInitThunk [0x75196A14+36] RtlInitializeExceptionChain [0x7730A9EF+143] RtlInitializeExceptionChain [0x7730A9BA+90] // Werkzeug Debugger

NoSuchElementException

selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":"div.lmt__inner_textarea_container textarea"} (Session info: chrome=81.0.4044.138) Stacktrace: Backtrace: Ordinal0 [0x01385E93+2449043] Ordinal0 [0x012B8281+1606273] Ordinal0 [0x011AF889+522377] Ordinal0 [0x01148D18+101656] Ordinal0 [0x011648B0+215216] Ordinal0 [0x01159FE0+172000] Ordinal0 [0x0116326C+209516] Ordinal0 [0x01159E5B+171611] Ordinal0 [0x01141DD8+73176] Ordinal0 [0x01142E50+77392] Ordinal0 [0x01142DE9+77289] Ordinal0 [0x012CD7F7+1693687] GetHandleVerifier [0x01424576+522742] GetHandleVerifier [0x014242B4+522036] GetHandleVerifier [0x01439587+608775] GetHandleVerifier [0x01424DE6+524902] Ordinal0 [0x012C5BDC+1661916] Ordinal0 [0x012CF15B+1700187] Ordinal0 [0x012CF2C3+1700547] Ordinal0 [0x012E5135+1790261] BaseThreadInitThunk [0x75196A14+36] RtlInitializeExceptionChain [0x7730A9EF+143] RtlInitializeExceptionChain [0x7730A9BA+90]

Traceback (most recent call last)

  • File "C:\ProgramData\Miniconda3\lib\site-packages\flask\app.py", line 2095, in __call__

        def __call__(self, environ: dict, start_response: t.Callable) -> t.Any:
            """The WSGI server calls the Flask application object as the
            WSGI application. This calls :meth:`wsgi_app`, which can be
            wrapped to apply middleware.
            """
            return self.wsgi_app(environ, start_response)
  • File "C:\ProgramData\Miniconda3\lib\site-packages\flask\app.py", line 2080, in wsgi_app

                try:
                    ctx.push()
                    response = self.full_dispatch_request()
                except Exception as e:
                    error = e
                    response = self.handle_exception(e)
                except:  # noqa: B001
                    error = sys.exc_info()[1]
                    raise
                return response(environ, start_response)
            finally:
  • File "C:\ProgramData\Miniconda3\lib\site-packages\flask\app.py", line 2077, in wsgi_app

            ctx = self.request_context(environ)
            error: t.Optional[BaseException] = None
            try:
                try:
                    ctx.push()
                    response = self.full_dispatch_request()
                except Exception as e:
                    error = e
                    response = self.handle_exception(e)
                except:  # noqa: B001
                    error = sys.exc_info()[1]
  • File "C:\ProgramData\Miniconda3\lib\site-packages\flask\app.py", line 1525, in full_dispatch_request

                request_started.send(self)
                rv = self.preprocess_request()
                if rv is None:
                    rv = self.dispatch_request()
            except Exception as e:
                rv = self.handle_user_exception(e)
            return self.finalize_request(rv)
     
        def finalize_request(
            self,
            rv: t.Union[ResponseReturnValue, HTTPException],
  • File "C:\ProgramData\Miniconda3\lib\site-packages\flask\app.py", line 1523, in full_dispatch_request

            self.try_trigger_before_first_request_functions()
            try:
                request_started.send(self)
                rv = self.preprocess_request()
                if rv is None:
                    rv = self.dispatch_request()
            except Exception as e:
                rv = self.handle_user_exception(e)
            return self.finalize_request(rv)
     
        def finalize_request(
  • File "C:\ProgramData\Miniconda3\lib\site-packages\flask\app.py", line 1509, in dispatch_request

                getattr(rule, "provide_automatic_options", False)
                and req.method == "OPTIONS"
            ):
                return self.make_default_options_response()
            # otherwise dispatch to the handler for that endpoint
            return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
     
        def full_dispatch_request(self) -> Response:
            """Dispatches the request and on top of that performs request
            pre and postprocessing as well as HTTP exception catching and
            error handling.
  • File "C:\pythoncode\google tranlate\app.py", line 301, in deeplfy

    def deeplfy():
        txt = request.values.get('q') #獲取參數
        print(txt)
        if not txt:
            return
        translated = deep_tranlate(txt)
        return translated
     
     
    @app.route('/baidufy',methods=['GET','POST'])
    def baidufy():
  • File "C:\pythoncode\google tranlate\app.py", line 82, in deep_tranlate

        driver.get(deepl_url)
        driver.implicitly_wait(2)
     
        # Get thie inupt_area
        input_css = 'div.lmt__inner_textarea_container textarea'
        input_area = driver.find_element_by_css_selector(input_css)
     
        # Send the text
        input_area.clear()
        input_area.send_keys(text_to_translate)
     
  • File "C:\ProgramData\Miniconda3\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 814, in find_element_by_css_selector

            warnings.warn(
                "find_element_by_css_selector is deprecated. Please use find_element(by=By.CSS_SELECTOR, value=css_selector) instead",
                DeprecationWarning,
                stacklevel=2,
            )
            return self.find_element(by=By.CSS_SELECTOR, value=css_selector)
     
        def find_elements_by_css_selector(self, css_selector) -> List[WebElement]:
            """
            Finds elements by css selector.
     
  • File "C:\ProgramData\Miniconda3\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 1251, in find_element

                value = ".%s" % value
            elif by == By.NAME:
                by = By.CSS_SELECTOR
                value = '[name="%s"]' % value
     
            return self.execute(Command.FIND_ELEMENT, {
                'using': by,
                'value': value})['value']
     
        def find_elements(self, by=By.ID, value=None) -> List[WebElement]:
            """
  • File "C:\ProgramData\Miniconda3\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 430, in execute

                    params['sessionId'] = self.session_id
     
            params = self._wrap_value(params)
            response = self.command_executor.execute(driver_command, params)
            if response:
                self.error_handler.check_response(response)
                response['value'] = self._unwrap_value(
                    response.get('value', None))
                return response
            # If the server doesn't send a response, assume the command was
            # a success
  • File "C:\ProgramData\Miniconda3\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 247, in check_response

                if 'data' in value:
                    alert_text = value['data'].get('text')
                elif 'alert' in value:
                    alert_text = value['alert'].get('text')
                raise exception_class(message, screen, stacktrace, alert_text)  # type: ignore[call-arg]  # mypy is not smart enough here
            raise exception_class(message, screen, stacktrace)
     
        def _value_or_default(self, obj: Mapping[_KT, _VT], key: _KT, default: _VT) -> _VT:
            return obj[key] if key in obj else default
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":"div.lmt__inner_textarea_container textarea"} (Session info: chrome=81.0.4044.138) Stacktrace: Backtrace: Ordinal0 [0x01385E93+2449043] Ordinal0 [0x012B8281+1606273] Ordinal0 [0x011AF889+522377] Ordinal0 [0x01148D18+101656] Ordinal0 [0x011648B0+215216] Ordinal0 [0x01159FE0+172000] Ordinal0 [0x0116326C+209516] Ordinal0 [0x01159E5B+171611] Ordinal0 [0x01141DD8+73176] Ordinal0 [0x01142E50+77392] Ordinal0 [0x01142DE9+77289] Ordinal0 [0x012CD7F7+1693687] GetHandleVerifier [0x01424576+522742] GetHandleVerifier [0x014242B4+522036] GetHandleVerifier [0x01439587+608775] GetHandleVerifier [0x01424DE6+524902] Ordinal0 [0x012C5BDC+1661916] Ordinal0 [0x012CF15B+1700187] Ordinal0 [0x012CF2C3+1700547] Ordinal0 [0x012E5135+1790261] BaseThreadInitThunk [0x75196A14+36] RtlInitializeExceptionChain [0x7730A9EF+143] RtlInitializeExceptionChain [0x7730A9BA+90]

This is the Copy/Paste friendly version of the traceback.

The debugger caught an exception in your WSGI application. You can now look at the traceback which led to the error. If you enable JavaScript you can also use additional features such as code execution (if the evalex feature is enabled), automatic pasting of the exceptions and much more.

Console Locked

The console is locked and needs to be unlocked by entering the PIN. You can find the PIN printed out on the standard output of your shell that runs the server.

PIN:

商家介紹
Wish是一家專注於移動購物的跨境B2C電商平台。Wish主張以親民的價格給消費者提供優質的產品。
溫馨提示
由於優惠碼更新變動較快,如遇到失效的優惠碼,請復制其他優惠碼使用
常用英文解釋
(壹)10% Off :9折。 20% Off:8折,以此類推
(二)25 Off $150+:購物滿150$ 打7.5折
(三)Sitewide:全站通用。Free Shipping:免運費。Free Gift:贈品。

其他Wish優惠碼