I am unable to access the newly opened page after submitting a form in same tab (not in new tab). I am a newbie in selenium driver, please help me.
In-fact, I accessed first page and filled form successfully, and then I clicked a submit button and proceed to next page, opened in same tab. But then I failed to access that newly opened page.
I also use 10 sec explicit wait to manage form submission and new page opening time but doesn't working. I didn't use WindowHandles() because I am not comfortable to use that. Will Windowhandles() work ?
Only one way I am able to access new page by using separately navigate().to() method after clicking submit button. But is this good approach to get control at new page rather than automating control to new page by some other way ?
I used following explicit wait and then accessed a button at newly page, but doesn't working:
WebDriverWait WaitVar = new WebDriverWait (driver, 10);
WaitVar.until(ExpectedConditions.visibilityOfElementLocated(By.id("BTNCustomQuestionFinalStep")));
driver.findElement(By.id("BTNCustomQuestionFinalStep")).click();
Without using explicit wait I got following error:
no such element: Unable to locate element
After using explicit wait I got following error:
Expected condition failed: waiting for visibility of element located by By.id: BTNCustomQuestionFinalStep (tried for 10 second(s) with 500 milliseconds interval)
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/60be9e9f-80d0-4b24-bb2e-ce0e028bf0b5%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/60be9e9f-80d0-4b24-bb2e-ce0e028bf0b5%40googlegroups.com.
Hi Bilal,
Check is the element is located inside an iframe.
அனுப்புநர்: Bilal Shahzad
அனுப்பியது: 13 September 2019 18:05
பெறுநர்: Selenium Users
பொருள்: Re: [selenium-users] How to access newly opened page in same tabusing selenium webdriver?
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/c2f9253d-f43e-4c75-9861-851e12ddbad8%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/c2f9253d-f43e-4c75-9861-851e12ddbad8%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/5d7ba74d.1c69fb81.da837.4956%40mx.google.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/c2f9253d-f43e-4c75-9861-851e12ddbad8%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/5d7ba74d.1c69fb81.da837.4956%40mx.google.com.