This is the Url: http://automationpractice.com/index.php I want to select “casual dresses”, but when I tried the “Women” WebElement is selected instead. How can I write the dyanmic xpath to select “casual dresses”? Answer You have to wait until page is loaded, then hover over Women title, the wait until the menu is open and then click on the Casual Dress
Tag: selenium-webdriver
How to pass input to multi element text box which is varying dynamically using selenium with java
I have one page where it has single text box, same page we have link called “create account”. When I click “create account”, page will be added with one more text box(i.e now text box count go to 2, next click 3 text box, next click 4 text box, etc). So whenever we click “create account” text box will be
I am not able to traverse to parent window to child window
Below code i was used in Selenium Eclipse, But i get a error shown in this line “String childid = it.next();” I am unable to traverse parent window to child window import java.util.Iterator; …
how to convert findElementByAndroidUIAutomator in Page Factory Format for Appium
I am currently designing Appium Android framework based on page object and page Factory. I have a below line of code which uses “findElementByAndroidUIAutomator”. I wanted to convert it to page Factory format like below example. As I checked I didn’t not find any definite answers regarding this. Just wanted to check as findElementByAndroidUIAutomator is android function not appium. So
How to close all child processes in C#
C# code: I am calling a java.exe from C# windows application. java.exe is used to test some websites. Java using Selenium to test the webpages by opening default web browser. It will open 3 to 10 times browsers and test the test cases. I want to add stop button in C# application and when we click it then it should
Selenium how to get all elements inside a WebElement
I’m trying to get all the elements inside a selenium WebElement, for example: I want to get a list of all the elements inside including child elements, like so… div element header paragraph element paragraph So I’ve tried this element.findElements(By.xpath(“*”)) but this would return only element element So then I tried a recursive method to get all of the childs
My Chrome version is Version 84.0.4147.105 but available ChromeDriver version is Version 84.0.4147.30 causing an error to launch chrome using Selenium
My chrome version is Version 84.0.4147.105 but available chrome version is Version 84.0.4147.30 its causing an error to launch chrome through selenium what should i do apart from downgrading the chrome version . Answer The latest stable ChromeDriver is ChromeDriver 84.0.4147.30. This version of ChromeDriver is well tested for all the minor versions of google-chrome Version 84.x.y.z. Conclusion Irespective of
Error calling method using same data (new data is always generated)
I have the following problem to be solved, could you help me? I have two methods in a class. The first generates a document (calling another class) and stores it in a string. The second one I want to …
selenium webdriver detect UI pop up error messages
I have this react application being tested using selenium webdriver. if my login is wrong, how do i detect the text using selenium webdriver? I am unable to find the code/ figure out how to trap the pop up message . ‘authentication failed’ Answer You can use below code to verify if authentication failed pop up is displayed or not:
Unable to run Selenium test with Chromedriver on Mac
Whenever I am trying to run my Java-Selenium tests locally on Mac through Chromedriver, its not invoking the browser and is getting this error as below. I am getting back to this code in couple of months time and last time could run without any issues, and in the meantime my project has not gone through any code change. Error