How to execute testng.xml file which contains test classes having the same...
Untill now I had written page specific tests which just focused on page specific scenarios. Ex: LoginPageTest.java contains tests that test scenarios related only to Login Page. Now that I have...
View Articleget text from element with on its composition, using Python Selenium
I'm pulling contact information (text) from a website and I can currently pull all the class data, using the following xpath syntax://*[@id="nomapdata"]/div/div/div/div[2]/div[1] Using this xpath for...
View ArticleWeird behaviour when trying to find src attrib of img class
I am trying to collect images of shoes, this is my code simplified:browser.get('https://www.gumtree.com.au/s-men-s-shoes/tn/k0c18573?ad=') recents = browser.find_element_by_xpath("//div[@class='panel...
View ArticleJavascript Return More Than One Range From Array.from() Method
Very new to Javascript, as I'm primarily using it to execute commands in Selenium IDE. I've been using the range function provided by Mozilla's documentation for the array.from() method. This is how I...
View ArticleJava Selenium + 2Captcha + Submit Form
Hello i am trying to automate some process here . i am using 2captch to solve captcha , please check out image . I have got site_key and api_key , now i am sending api_key + site_key and it is...
View ArticleSelenium Python script has different behavior on Windows and Ubuntu environments
I've tried running a script on Windows and on Ubuntu, both using Python 3 and the latest versions of geckodriver, resulting in differing behavior. The full script is given below.I'm trying to get the...
View ArticleHow to extract the text of a text node that is not inside a tag of its own...
I want to get a single line of text (e.g. standard_user). How can i do this?<div id="login_credentials" class="login_credentials"> <h4>Accepted usernames are:</h4> standard_user...
View ArticleContinue test after element is not available in while loop
I have a web page where I have 5 same class buttons and there are 500 and more pages with the same buttons on every page and I made a while loop to click on all of them. But eventually at the end where...
View Articlejava.lang.ClassCastException: class org.openqa.selenium.By$ByXPath cannot be...
I am trying to automate radio button in selenium web driver using Page object model. Below is my code explanation:By AutomaticDataLockTimed =...
View Articlepython selenium can't interact with input element?
I'm trying to put my name in an input field. It seems like a simple thing that selenium is built to do, but I cannot figure out what I'm doing wrong. name =...
View ArticleWhat is ID in here? I want until the page loads completely ( which varies...
This question already has an answer here:Official locator strategies for the webdriver 1 answerDo we have any generic function to check if page has completely loaded in Selenium 5 answerstry:...
View ArticleIs there way to disable CORS check using RemoteWebDriver for SauceLabs
Question says it all, I m trying to execute some selenium tests on SauceLabs, the test loads a webpage that makes a cross domain request. I was thinking is there a way to disable CORS, in...
View ArticleHow to zoom out of page using python selenium
I found this for java :-WebElement html = driver.findElement(By.tagName("html")); html.sendKeys(Keys.chord(Keys.CONTROL, Keys.ADD)); But how to do this using Python? I want to zoom out one level after...
View ArticleHow do you scrape even numbered elements with python/selenium?
Code that I am targeting looks like this: <td> <b>Shipwreck</b>: Fairfax the Deckhand <br> <b>Harpoon Harry's</b>: Franchisco Corvallio<br> </td> The...
View ArticleJava/Kotlin Selenium Chromedriver 2Captcha
I'm trying to learn about 2Captcha nad as an example i wanted to make a spotify account. I've gotten to fill the form just right, but the only concern is the 2Captcha. I've tried all sorts of ways...
View ArticleTestNG console is displaying blank only when running the suite using...
I am running a TestNG.xml I have created a maven project for my automation selenium script and added all the required dependencies to pom.xml. If I run the suite defined in the Testng.xml file using...
View Articleorg.openqa.selenium.NoSuchElementException: Cannot locate element with text:...
This question already has an answer here:NoSuchElementException, Selenium unable to locate element 2 answersI am using TestNG framework. I get data from xlsx doc using data providers. When I run my...
View ArticleHow to extend a class having parameterized @BeforeMethod
I want to extend BaseClass from all test cases class. For some test cases I want to login with Admin credentials and for some with Customer.Previously this code was working properly as...
View ArticleRuby Selenium - warning that :driver_path is deprecated
Using Ruby selenium-webdriver 3.142.6My tests work, but at the start of the run it displays the warningWARN Selenium [DEPRECATION] :driver_path is deprecated. Use :service with an instance of...
View ArticleJenkins Firefox selenium build fails with message FAILED TO establish the...
So i am learning selenium and jenkins integration using java and maven. I had issues with chrome and jenkins and was told i should try the firefox webdriver. So this is what i did. However i get the...
View Article