using following steps of script
WebUI.openBrowser(‘’)
WebUI.maximizeWindow()
WebUI.navigateToUrl(‘https://dividebuy-qa.info/joinnow’)
WebDriver driver = DriverFactory.getWebDriver()
boolean iframe
try {
iframe = driver.findElement(By.xpath('//iframe\[contains(@name,\\'a-\\')\]')).isDisplayed()
}
catch (Exception e) {
e.printStackTrace()
}
println(iframe)
WebUI.delay(5)
driver.switchTo().frame(driver.findElement(By.xpath(‘//iframe[contains(@name,\‘a-\’)]’)))
driver.findElement(By.xpath(‘//span[@id=\‘recaptcha-anchor\’]/div[5]’)).click()
not_run: CustomKeywords.‘customKeyword.customKeyword.click_by_javaScript’(findTestObject(‘Signup/chk_recaptcha’))
not_run: WebUI.click(findTestObject(‘Signup/chk_recaptcha’))
WebUI.switchToDefaultContent()
WebUI.delay(5)
WebUI.click(findTestObject(‘Signup/btn_join’))
WebUI.waitForElementNotPresent(findTestObject(‘Login/button_Log Out’), 30)
WebUI.verifyElementPresent(findTestObject(‘Login/button_Log Out’), 15)