Skip to content
Advertisement

Tag: selenium-webdriver

Cannot write dynamic xpath for element in page

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

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

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:

Advertisement