Wie bekomme ich den XPath von Popup, der im selben Fenster auftritt?

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Wie bekomme ich den XPath von Popup, der im selben Fenster auftritt?

by Anonymous » 11 Jul 2025, 11:03

Ich muss die Werte an dieses Cop -up senden. Dies ist im selben Fenster geöffnet. Wenn ich es mit dem normalen Treiber versuche. Findelement, wird die Fehlermeldung angezeigt, dass XPath
nicht gefunden wird. Dies ist mein Code < /p>

import java.util.concurrent.TimeUnit;

import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;

public class Homepage_login {

public static void main(String[] args) {
// TODO Auto-generated method stub

FirefoxDriver driver = new FirefoxDriver();
driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);

//driver.get("http://se.rdmsonline.net/login.aspx");

driver.get("http://se.rdmsonline.net/");
driver.findElement(By.xpath("//*[@id='rcmLang_Arrow']")).click();

driver.findElement(By.xpath("//*[@id='rcmLang_DropDown']/div/ul/li[2]")).click();

driver.findElement(By.xpath("//*[@id='txtUserName']")).sendKeys(" ");

driver.findElement(By.xpath("//*[@id='txtPassword']")).sendKeys(" ");

driver.findElement(By.xpath("//*[@id='btnLogin']")).click();

driver.findElement(By.xpath("//*[@id='Div1']/div/a")).click();

driver.findElement(By.xpath("//*[@id='txtUserName']")).sendKeys(" ");

driver.findElement(By.xpath("//*[@id='txtPassword']")).sendKeys(" ");

driver.findElement(By.xpath("//*[@id='btnLogin']")).click();

driver.findElement(By.xpath("//*[@id='rptSec_ctl00_imb']")).click();

driver.findElement(By.xpath("//*[@id='ctl00_Menu5']")).click();

driver.findElement(By.xpath("//*[@id='ctl00_cpl1_lnkNewNotification']")).click();

driver.findElement(By.xpath("//*[@id='ctl00_cplm_dtpDate_dateInput_text']")).sendKeys(" ");

}

}
< /code>

Dies muss das Steuerelement im Pop -up senden. Kann mir jemand helfen? < /p>

Top