Questions tagged selenium

Explore the latest questions and answers asked by our top developers.

How can check and select available date in selenium

There is inspect code and this web site using angular application for front end. How can I select date. If all date disable then go to next month and check if not available then go to next month <div class="fc-daygrid-day-bg"></div> </div> </td> <td class="fc-daygrid-day fc-day fc-day-thu fc-day-future" data-date="2022-01-06"> <div class="fc-daygrid-day-frame fc-scrollgrid-sync-inner"> <div class="fc-daygrid-day-top"><a class="fc-daygrid-day-number">6</a></div> <div […]

By Anox Software technology
Published
Categorized as angular, java, selenium Tagged , ,

How can I Click angular application button using selenium

I can Login successfully but There is button "Start new booking" but my script doesn’t click that button. import org.openqa.selenium.JavascriptExecutor; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import com.paulhammant.ngwebdriver.ByAngular; import com.paulhammant.ngwebdriver.NgWebDriver; import org.openqa.selenium.support.ui.WebDriverWait; import org.openqa.selenium.support.ui.ExpectedConditions; import org.openqa.selenium.By; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.ui.Wait; public class NewClass { public static void main(String[] args) throws InterruptedException { System.setProperty("webdriver.chrome.driver", "C:UsersHpDownloadschromedriver_win32chromedriver.exe"); ChromeDriver driver = […]

How can I auto accept cookies pop windows Automation Java

What is the wrong in my code , why auto click doesn’t work in accept cookies button. This website using angular application. import org.openqa.selenium.JavascriptExecutor; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import com.paulhammant.ngwebdriver.ByAngular; import com.paulhammant.ngwebdriver.NgWebDriver; public class NewClass { public static void main(String[] args) { System.setProperty("webdriver.chrome.driver", "C:UsersHpDownloadschromedriver_win32chromedriver.exe"); ChromeDriver driver = new ChromeDriver(); NgWebDriver ngWebDriver = new NgWebDriver(driver); ngWebDriver.waitForAngularRequestsToFinish(); […]

By Kayes Fahim
Published
Categorized as angular, automation, java, selenium Tagged , , ,

Check AngularJS checkbox with Selenium

HTML Source here It seems trivial, but after hours of attempts I cannot manage to check this checkbox using Selenium. I am able to select the element no problem, and have even been able to ‘highlight’ (see code snippet below) it by sending Keys.RETURN to the element, but on attempting to click it, nothing happens. […]

By Chris
Published
Categorized as angular, html, python, selenium Tagged , , ,

Selenium Webdriver, JS: uploading a file to an input field that requires a button press, without pressing the button

My goal is to automate a test with protractor/selenium/javascript where I upload a video then upload a cover/thumbnail image for that video on a private webpage. The video upload is successful, the cover image upload is not. Users would typically press the upload cover image button, opening file selector in a new window. To my […]

Appium offset on touchActions

I’m testing an Angular website on an iPhone 8, with Protractor and Appium, and I can clearly see that when clicking on an element sometimes it clicks beneath it (whenever the element is close to the bottom of the page) or above it (whenever the element is close to the top of the page). I […]

By Ian Molina
Published
Categorized as angular, appium, ios, protractor, selenium Tagged , , , ,

Why I can’t find element by xpath?

I have element: <span ng-click="openOrderAddPopup()" class="active g-button-style g-text-button g-padding-5px g-margin-right-10px ng-binding"> <i class="fa fa-plus g-margin-right-5px"></i> "Add "</span> I want to find it by xpath. This one works: *//span[@class=’active g-button-style g-text-button g-padding-5px g-margin-right-10px ng-binding’] but looks ugly and it’s not unique because there are three such elements. I want to find it by text but this […]

By kris82pl
Published
Categorized as angular, selenium, xpath Tagged , ,

How to wait for the fade in process to complete in protractor? [closed]

I think we have an API which waits for the visibility of an element in protractor.But if we come to wait for the fade in process to complete for an element, there is no API in protractor for that. So how can we create a custom API for that? Source: AngularJS Questions

Clicking on a ng-select dropdown option using selenium c#

Using selenium c# – I am unable to click on a value of an angular dropdown list. code: new SelectElement(driver.FindElement(By.Name("Status"))).SelectByIndex(2) error: ‘Element should have been select but is a ng-select’. I also tried clicking on the dropdown first then targeting the values after dropdown list shows. I got ‘Element should have been select but is […]

By Eniola Akinbileje
Published
Categorized as .net, angularjs, c#, javascript, selenium Tagged , , , ,

Which is best angular GUI automation tools

CYPRESS – LICENSE tool and limited features compared to ngWebDriver. Protractor – it will be decommissioned soon. ngWebdriver – this one good if we are using java language for scipting. Could you please let me know if we have any other tools for angulr GUI Better one. Source: AngularJS Questions

1 2 3 14

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq