簡體   English   中英

我想使用Selenium RC關閉modalPopup

[英]I want to close a modalPopup using Selenium RC

當我在應用程序中輸入Userid和pwd時,如果該用戶不再處於活動狀態,則將顯示Modal彈出窗口。 我需要使用Java使用Selenium RC關閉此窗口,否則我將無法繼續。 請在下面找到模式彈出窗口的HTML代碼。

誰能盡快幫助我。

 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org  
         /TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Security Questions Alert</title>
        <style type="text/css">
    .modalPopup
    {
     border-width:0px;
     border-style:solid;
     padding:3px;
     width:570px;
    }
   .ModelText
   {
    FONT-SIZE: 11px; MARGIN: 0px; font-weight:200; FONT-STYLE: normal; FONT-FAMILY: Tahoma;
   }
   .Orange { font-family:Tahoma; font-size:11px; font-weight:600; color:#FF3300;}
    </style>
    </head>
    <body background="Common/Images/login/forgot_13.gif">
    <div style="vertical-align:middle">
    <table class="modalPopup" width="100%" cellspacing="0" cellpadding="0" border="0">
    <tbody>

在此模式彈出窗口上,我只有關閉按鈕。

希望此鏈接有助於解決您的問題: http : //pragmaticqa.co.uk/blog/2009/04/selenium-rc-and-pop-up-handling/

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM