I am trying to work with a webpage in Selenium 4. The page has a few iframes and I am trying to wait for an iframe to load completely and then switch to it. However, the code below doesn’t seem to work: The system out just prints an empty HTML snippet below: As a result, when I try to select
Tag: selenium
Selenium Firefox webdriver cannot see webelement given but Chrome can?
I have a test case that changes the time value in the dialog pop-up. To do so, I created a method named setDateInput. When it is called by this code below, Chrome driver changed the startInput to 23:55 but firefox does neither clear() nor sendKeys(). So, my question is, is there a different way to handle the text type input
Selenium web driver assert webelement contains text and display actual vs expected
I have a demo selenium cucumber project that just runs some maths expressions in google search box and validates the results. I want the reports to show the actual value vs expected when it fails. I’m storing the returned text as string with .. and then asserting against expected which gets passed from my feature files with … but the
JavaScript Error Element is null: while interacting ShadownDom element
I am writing code in Javascript to automate the website https://www.fashionette.co.uk/. I have to use cookies when the user lands on the page for the first time I am writing the following code to get cookies: it locate element in browser correctly: But In Intellij it gives me error: Answer If you are using Java create a browser instance and
Selenium And Java: Exception in thread “main” org.openqa.selenium.NoSuchWindowException: no such window: target window already closed
I am accessing a Quebec Laws website and I am trying to web scrape all of its law names along with their associated PDFs. When doing this, I open each and every tab of each law and then go through all those tabs to get the information I am looking for. However, after a while of going through the tabs
Selenium 4 : Getting java.lang.NoSuchMethodError: org.openqa.selenium.WebElement.getDomAttribute(Ljava/lang/String;)Ljava/lang/String;
I am using selenium “4.1.2” with chrome 97. While selecting value from drop down using select class, getting exception: Below are dependencies in my project: Any help in resolving this issue is highly appreciated. Answer This error message… …is the result of dependency version conflict. Deep Dive As per @titusfortner comment in the discussion you need to crosscheck that everything
i am getting a java.lang.NullPointerException while executing the testng script
while running the code i am getting this java.lang.NullPointerException in chrome, i have extended the main login class to another and its showing this exception. i have extended the same main class to another diff class and its successfully running but only this class is showing error. here is the code //login page public class admin_login { } //Userclass public
How to select an option from a list (not in dropdown) in Selenium Java
I am trying to select an option(not from the dropdown) and then click on the button. The problem is I cannot find any class name, id or name or any selector to find that element. I tried “By.className=”device pcclient selected” but an error occurs “Compound class names not permitted”. How can I select an option from R1, R2, R3 and
How to execute selenium script in a lot of threads?
I like to test my site in a lot of threads. But when I trying to do that, I see one problem. All motions when I like are happening in last opened window. So, the first window just stuck in background. I really don’t understand why it happens. You can see it here. After that the code has run, the
How to locate an element on this page?
I tried a lot to locate elements on this page with this link ALL I want to do is to select “1 queen bed” or “1 double large bed” and then select amount from the drop down list then press, I’ll reserve button. But I totally failed trying all of these:- using Action –> moveToElement –> perform() using JS Execution