Skip to content
Advertisement

Tag: selenium

Amazon.in site language setting radio button handling in selenium

I am new to selenium automation and while learning radio button handling in selenium, I tried to automate language setting in amazon.in page. I am unable to select the radio button listed in the page. site: https://www.amazon.in/customer-preferences/edit?ie=UTF8&preferencesReturnUrl=%2F&ref_=topnav_lang code used: driver.findElement(By.xpath(“//input[@value = ‘ta_IN’]”)).click(); (I tried to select the language tamil- TA (3rd radio button)). Can anyone guide me in this? Answer

How to write in pre tag?

I can’t write value to field using Selenium .sendKeys. So I use jsCode: and I can’t understand why these methods don’t work – the test passes but the value is not written to the field $(“div pre”).append(“RESPONSE”) – work in devTools Full html code: Answer If you are trying to append to the content of the pre tag then use

How to match the string and click on selenium webdriver

I Have an two string in Auto suggestion Dropdown Like 1. qapostgres112axdef 2. qapostgres112 I need to match the second value (qapostgres112) and need to click on it. for that I used the contains() method. since, both the String contains the same characters ‘qapostgres112’ selenium performs click operation on first string. Answer Since both the options contain qapostgres112, the contains()

Containerizing executables in Java

I have a CEF (Chromium Embedded Framework) application I am controlling with Selenium. Normally the application does not allow multiple instances of it to be running at the same time since it modifies directly its root files. I need to be able to run multiple instances (controlled by Selenium) though and some kind of containerization is therefore needed, correct? I’ve

org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: not able to locate the element inside table tag

I was trying to locate the element which is present inside the table tag But iam getting the error “org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {“method”:”xpath”,”selector”:”//div[@id=’divTable’]/child::div/child::div/child::table/child::tbody/child::tr/child::td2/input”} (Session info: chrome=103.0.5060.114)” Here is my code…. Here is HTML…. Here is page source….. PAGE SOURCE IMAGE ERROR IN ECLIPSE Answer We can see there is one frame before the element so

Advertisement