I wrote the code to switch to the frame and send some values ββto the text box. when writing code, it worked for me. Now it now recognizes the object and does not pass the value. let me know why he fails.
The Getobject method finds an element using xpath, xpath is stored in the properties file.
getobject("ForgotClaimNumber_Link").click(); driver.switchTo().frame(driver.findElement(By.id("fancybox-frame"))); WebDriverWait wait = new WebDriverWait(driver,100); wait.until(ExpectedConditions.elementToBeClickable(By.xpath("//*[@id='txtClaimNum']"))); getobject("ClaimNumber_Edit").sendKeys("5200098863"); getobject("Find_Button").click();
source share