Did you try this?
driver.switchTo().frame("iframe");
driver.findElement(By.xpath(".//*[@id='btn_submit']")).click();
More Related Contents:
- What Is Selenium And What Is WebDriver?
- NoSuchElementException, Selenium unable to locate element
- Scroll Element into View with Selenium
- XPath: difference between dot and text()
- Selenium: Point towards default Chrome session
- How to run Selenium WebDriver test cases in Chrome
- Can Selenium WebDriver open browser windows silently in the background?
- Selenium WebDriver zoom in/out page content
- Timed out receiving message from renderer: 0.100 log messages using ChromeDriver and Chrome v80 through Selenium Java
- Reached error page: about:neterror when trying to navigate to other tabs if there is a form submit under that tab
- Tests fail immediately with unknown error: DevToolsActivePort file doesn’t exist when running Selenium grid through systemd
- How to install extension permanently in geckodriver
- Clicking at coordinates without identifying element
- org.openqa.selenium.ElementNotInteractableException: Element could not be scrolled into view when trying to click a button
- Selenium WebDriver.get(url) does not open the URL
- Difference of Headless browsers for automation
- What is the difference between a CSS selector and XPath? And which is better with respect to performance for cross-browser testing?
- What is the difference between a CSS and XPath selector? And which is better with respect to performance for cross-browser testing?
- I need to find an element in Selenium by CSS
- Selenium use chrome on Colab got unexpectedly exited
- Automating Edge Browser using VBA without downloading Selenium
- Get PID of Browser launched by selenium
- Security Considerations – ChromeDriver – Webdriver for Chrome
- How does Selenium WebDriver’s isDisplayed() method work
- ‘sendKeys’ are not working in Selenium WebDriver
- what’s the relationship between Selenium RC and WebDriver?
- isElementPresent is very slow in case if element does not exist.
- What are the benefits of using Marionette FirefoxDriver instead of the old Selenium FirefoxDriver for a Selenium tester?
- How to get attribute value inside a div in webdriver
- Capturing JavaScript error in Selenium