I have observed one small thing, if we are using thread.sleep, then frame switching with index will not work but frame switching with id or name will work; is this a known issue
If you find this video is not clear, you can watch this video with good , the link is in 1st comment. The content of the video is good, explained in simple way
Hi I am trying to logging with Frame handling but still couldn't figure out still getting NoSuchElement exception package AutoSel; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.chrome.ChromeOptions; import org.openqa.selenium.remote.DesiredCapabilities; import io.github.bonigarcia.wdm.WebDriverManager; public class skiptest { public static void main(String[] args) throws InterruptedException { WebDriverManager.chromedriver().setup();
Actually you don't need to handle the frame here. Because the "Login with Email" button is not present inside any frame. So remove the frame handling code and execute the script.
I have a power bi report inside Iframe where I am trying to download the report to excel, I tried the same code but no luck can you help meI have a power bi report inside Iframe where I am trying to download the report to excel, I tried the same code but no luck can you help me
Yes, absolutely After you switch to the target frame, driver now points to that frame content. So you can perform any kind of operation like javascriptexecutor operations.
Please use the below link for the selenium videos playlist:
🔗 bit.ly/2FyKvxj
how to switch from 5th frame to 4th frame in case if all are nested?
One of the best tutorials on this topic. Thanks!
It's one of kind of Website you created is superb work to understand the concept, i have to say tons of thanks
Glad to hear that
Thank you. You explain patiently & with sincerity. Thanks again.
So nice of you
Excellent explanation sir, I had a fear to automate frames, but you recovered me from this. Thank you so much
Thanks buddy 😊
Обожаю туторы этого прекрасного народа. Мемы мемами, а полезность коллосальная. :)
Thankyou buddy
Explained in very good manner.
Thank you Comrade.
Thanks buddy 😊
Thanks for the explanation, you made my day.
Happy learning buddy 😊
really so help full, crystal clear explanation thank you sir
Thanks for your excellent lectures
Thankyou, keep watching 😊
Loved your explanation. Thank you
Thanks buddy 😊
Awesome. Thanks a lot for the very clear explanation
Thankyou 😊
Learning a lot from ur videos...clear explanation..thanks for sharing the videos....waiting for CSS selector videos..👍
Thankyou.
Soon will create them.
Hey H Y R Tutorial
Your lecture is very Impressive
Thank you for your effort
Have a good one
Thanks buddy
Very good explanation
Thankyou 😊
thank you , i can understand it very well now
That's good to hear buddy 🙂
well explained.great job
Thanks buddy 😊
I have observed one small thing, if we are using thread.sleep, then frame switching with index will not work but frame switching with id or name will work; is this a known issue
can we use switchto default content while handling windows
Nope
This method is designed for frames only
If you find this video is not clear, you can watch this video with good , the link is in 1st comment.
The content of the video is good, explained in simple way
Thank you
Hi I am trying to logging with Frame handling but still couldn't figure out still getting NoSuchElement exception
package AutoSel;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;
import org.openqa.selenium.remote.DesiredCapabilities;
import io.github.bonigarcia.wdm.WebDriverManager;
public class skiptest {
public static void main(String[] args) throws InterruptedException {
WebDriverManager.chromedriver().setup();
ChromeOptions options =new ChromeOptions();
WebDriver driver =new ChromeDriver(options);
options.addArguments("--start-maximized","--incognito");
driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
DesiredCapabilities caps = new DesiredCapabilities();
caps.setAcceptInsecureCerts(true);
options.merge(caps);
driver.get("www.skipthedishes.com/");
//Thread.sleep(2000);
driver.findElement(By.xpath("//button[@aria-label='Log In']")).click();
//Thread.sleep(2000);
driver.switchTo().frame(driver.findElement(By.id("ssIFrame_google")));
driver.findElement(By.xpath("//div[contains(text(),'Email')]/ancestor::button")).click();
driver.switchTo().defaultContent();
Thread.sleep(2000);
driver.quit();
}
}
Actually you don't need to handle the frame here.
Because the "Login with Email" button is not present inside any frame.
So remove the frame handling code and execute the script.
@@HYRTutorials thank you so much. did you post any tutorials on Grid and selenium cucumber
@@Solution4uTx not yet but will create them
what is difference between frame and ? is it different
I have a power bi report inside Iframe where I am trying to download the report to excel, I tried the same code but no luck can you help meI have a power bi report inside Iframe where I am trying to download the report to excel, I tried the same code but no luck can you help me
At what stage you are struck buddy?
Are you getting any exception?
Send me the code and screenshot on
hyadagirireddytutorials@gmail.com
how to switch from 5th frame to 4th frame in case if all are nested
It's the same process buddy.
You just need to understand where your driver focus is present and where is your target frame.
Thank you so much 🎉 It helped me😊
Clear explanation broo😊
Thankyou buddy 😊
Amazing job
Hi I would like to know if you are conducting some training sessions for Java + Selenium automation testing?
How do you handle the case when you reload the page and all the get detached?
Even if you reload the page, the frames will be attached again by the time page loading is complete.
Brilliant explanation 🙂 , I have a question , can we handle the elements inside the frames using javascript executor interface ??
Yes, absolutely
After you switch to the target frame, driver now points to that frame content.
So you can perform any kind of operation like javascriptexecutor operations.
Can we handle whose visibility is hidden
I dont think we can do that.
But why do u want to handle the hidden frames?
Frames switching is taking more execution time, Is there any solution?
No buddy
Nice Explanation. Is it possible to calculate the time load for using javascript or listeners?
I don't think so @Purvi
@@HYRTutorials Thanks, that is the task given to me.
Excellent video. Please give code of program
I dont have that copy now buddy.
You can pause the video and note the program
Sir I am facing issues in chat bot to switch frame please help me out I am on job
What's the issue you are facing?
@@HYRTutorials I am facing issue in testing chatbot
@@i4iirfan what issue buddy
Thank you
Welcome buddy 😊
Thanks HYR
Welcome buddy
Code explanation starts at 10:10.
Yup
Thanks bro 🫡
Tqu sir
Glad you liked it