第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

即使在移動(dòng)到元素并在 Selenium Java 中顯式等待后,元素也不可交互

即使在移動(dòng)到元素并在 Selenium Java 中顯式等待后,元素也不可交互

米脂 2023-04-26 17:08:05
當(dāng)我點(diǎn)擊供應(yīng)商框時(shí),它會(huì)彈出一個(gè)選項(xiàng)列表,您可以滾動(dòng)到或鍵入您想要的內(nèi)容并選擇。該框有一個(gè)明確的 ID,并且在實(shí)際頁(yè)面上肯定是可交互的,但是當(dāng)我運(yùn)行測(cè)試時(shí),它只是說(shuō)元素不可交互。我已經(jīng)閱讀了其他線程并嘗試使用 Actions 移動(dòng)到元素并顯式等待,當(dāng)我完成后,拋出了一個(gè)錯(cuò)誤“等待元素的可見(jiàn)性”。//嘗試移動(dòng)到元素    Actions action = new Actions(driver);    action.moveToElement(driver.findElement(By.id(TransactionUIConstants.VENDOR_SEARCH)));    WebDriverWait wait = new WebDriverWait(driver, Page.TIMEOUT);    wait.until(ExpectedConditions.visibilityOf(driver.findElement(By.id("vendor"))));     wait.until(ExpectedConditions.elementToBeClickable(driver.findElement(By.id("vendor"))));    //What I'm trying to click    driver.findElement(By.id("vendor")).click();    driver.findElement(By.id("vendor")).sendKeys("Amazon");    driver.findElement(By.id("vendor")).sendKeys(Keys.ENTER);這是檢查選項(xiàng)卡中的描述:input name="" id="vendor" type="text" autocomplete="nope" placeholder="Select option" tabindex="0" class="multiselect__input" style="width: 0px; position: absolute; padding: 0px ;"
查看完整描述

5 回答

?
吃雞游戲

TA貢獻(xiàn)1829條經(jīng)驗(yàn) 獲得超7個(gè)贊

如果它有選擇標(biāo)簽,您可以嘗試使用選擇類。我假設(shè)它可能是一個(gè)多選下拉列表



查看完整回答
反對(duì) 回復(fù) 2023-04-26
?
慕尼黑的夜晚無(wú)繁華

TA貢獻(xiàn)1864條經(jīng)驗(yàn) 獲得超6個(gè)贊

mail.smtp.host=smtp.gmail.com

mail.smtp.socketFactory.port=465

mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory

mail.smtp.auth=true

mail.smtp.port=465

mail.transport.protocol=smtp



resource folder-1


查看完整回答
反對(duì) 回復(fù) 2023-04-26
?
斯蒂芬大帝

TA貢獻(xiàn)1827條經(jīng)驗(yàn) 獲得超8個(gè)贊

utility class- 2


 private Folder folder;


  public enum EmailFolder {

    INBOX("INBOX"),

    SPAM("SPAM");


    private String text;


    private EmailFolder(String text){

      this.text = text;

    }


    public String getText() {

      return text;

    }

  }


查看完整回答
反對(duì) 回復(fù) 2023-04-26
?
慕少森

TA貢獻(xiàn)2019條經(jīng)驗(yàn) 獲得超9個(gè)贊

   <dependency>

        <groupId>javax.mail</groupId>

        <artifactId>javax.mail-api</artifactId>

        <version>1.5.5</version>

    </dependency>


    <dependency>

        <groupId>com.sun.mail</groupId>

        <artifactId>smtp</artifactId>

        <version>1.6.0</version>

    </dependency>


    <dependency>

        <groupId>com.sun.mail</groupId>

        <artifactId>javax.mail</artifactId>

        <version>1.6.0</version>

    </dependency>


查看完整回答
反對(duì) 回復(fù) 2023-04-26
?
猛跑小豬

TA貢獻(xiàn)1858條經(jīng)驗(yàn) 獲得超8個(gè)贊

/**

   * Uses email.username and email.password properties from the properties file. Reads from Inbox folder of the email application

   * @throws MessagingException

   */

  public EmailUtils() throws MessagingException {

    this(EmailFolder.INBOX);

  }


  /**

   * Uses username and password in properties file to read from a given folder of the email application

   * @param emailFolder Folder in email application to interact with

   * @throws MessagingException

   */

  public EmailUtils(EmailFolder emailFolder) throws MessagingException {

    this(getEmailUsernameFromProperties(),

        getEmailPasswordFromProperties(),

        getEmailServerFromProperties(),

        emailFolder);

  }


  /**

   * Connects to email server with credentials provided to read from a given folder of the email application

   * @param username Email username (e.g. janedoe@email.com)

   * @param password Email password

   * @param server Email server (e.g. smtp.email.com)

   * @param emailFolder Folder in email application to interact with

   */

  public EmailUtils(String username, String password, String server, EmailFolder emailFolder) throws MessagingException {

    Properties props = System.getProperties();

    try {

      props.load(new FileInputStream(new File("resources/email.properties")));

    } catch(Exception e) {

      e.printStackTrace();

      System.exit(-1);

    }


    Session session = Session.getInstance(props);

    Store store = session.getStore("imaps");

    store.connect(server, username, password);



    folder = store.getFolder(emailFolder.getText());

    folder.open(Folder.READ_WRITE);

  }


查看完整回答
反對(duì) 回復(fù) 2023-04-26
  • 5 回答
  • 0 關(guān)注
  • 209 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)