Questions tagged [browser-automation]

Questions regarding automation of web applications for testing purposes according to specific of used web browser.

Filter by
Sorted by
Tagged with
2
votes
3answers
9k views

How to select and click the first enabled button?

I am currently changing my XPath every time to click on the enable (Qualification check) button. However, I want to click on the first button that is in the enabled state. I have a total of 10 buttons ...
-1
votes
1answer
363 views

Not able to select the checkbox of a html row [closed]

MY CODE: package com.drishti.automate.testing; import java.util.List; import org.openqa.selenium.By; import org.openqa.selenium.Keys; import org.openqa.selenium.WebDriver; import org.openqa....
0
votes
3answers
1k views

C# webdriver: Issue with wait.Until(ExpectedConditions.VisibilityOfAllElementsLocatedBy(By.TagName(“tr”))); returning WebDriverTimeoutException

I am working with the following html table, <tbody role="rowgroup"> <tr data-uid="d4d2114f-2aaf-4498-977b-ae5b8c16618c" role="row" class="Standard k-state-selected" aria-selected="true"> &...
0
votes
2answers
1k views

Unable to locate element to sendkeys C# WebDriver

I'm working with the following HTML: <tbody> <tr class="formRow"> <td class="labelColumn"> <span id="ctl00_MainContent_lblTemplate">Template</span> </...
0
votes
2answers
3k views

How to get Embed link from Openload API after Remote upload? Selenium & Python

im trying to use Openloads API in python, i can do a remote upload like this: ol_url = driver.current_url resp = ol.remote_upload(ol_url) file_id = resp.get('id') Now i have a file uploaded in ...
2
votes
2answers
276 views

Benefits of BDD tools such as SpecFlow for tech debt in automation

We are starting to automate our manual regression suites using Selenium Webdriver and NUnit. The tests we will be automating are quite detailed in terms of steps and expected results however I was ...
1
vote
1answer
5k views

How to compare image in Sikuli?

I want to compare one small part with full screenshot. Screen screen=new Screen(); Pattern pa1=new Pattern("/Users/37397/Desktop/Screen Shot 2018-03-27 at 6.02.42 PM.png"); String img=screen....
2
votes
1answer
397 views

List<IWebElement> not being populated from a local variable causing NullReferenceException

I'm experiencing a few issues with trying to create a list using List<IWebElement>from a local variable. The HTML I'm working with is below, <div id="enquiry-header-grid-...
0
votes
2answers
10k views

Clicking a cell in a dynamic data table C# WebDriver

The HTML I'm trying working with is below, <div id="enquiry-header-grid-SalesTransactionEnquiry-enquiry-header-grid-wrapper" class="enquiry-kendo-grid-wrapper k-grid k-widget" data-role="grid" ...
1
vote
1answer
499 views

How to create a Selenium IE Node that starts on boot?

I've been hitting my head against the wall with this one for a while now. On Linux Chrome and Firefox selenium nodes are fairly easy to setup and start automatically at boot time using docker or even ...
0
votes
2answers
2k views

Not able to locate the web element with partial xpath and text [duplicate]

I have web element set like below .. <div class="dxnb-headerCollapsed" id="ctl00_LeftPanel_LeftNavigationMenu_nbMenu_GHC1"> <i class="fa fa-handshake-o fa-2x fa-fw" style="">&...
1
vote
2answers
406 views

E2E - Is it possible to share data between e2e.spec files?

I do have 2 *.e2e-spec.ts files for an E2E testing. So now I would like to share data between these files. e.g. an email which is used for a signup signup-e2e.spec.ts and I would like to use it for ...
1
vote
2answers
841 views

Selenium: Getting error with webElement or Webdriver “Drive” Variable

New to automation. Help is greatly needed Anybody could help me with following code Why i am getting NullPointerException? Error: Null pointer access: The variable driver can only be null at this ...
-1
votes
2answers
3k views

driver is getting null for utility classes

I'm getting null pointer exception for driver object. Here is the flow: BaseClass initializes the driver (WebDriver driver = new ChromeDriver();) I create a test class and extend it with BaseClass. ...
1
vote
2answers
277 views

How to programmaticaly create a print screen in SideeX (Record-Playback Browser Automation)?

In my automated test, I need to read the label of the object displayed on the webpage. Next, I would like to create a print screen and save it using just read string. To solve such issues, I used to ...
0
votes
3answers
5k views

Switching to a new window in Selenium webdriver

I am in a confused state. I am not able to get control of a window which is newly opened. I am using chrome browser for my testing. Here is the scenario - I am in a facebook window and entered all my ...
0
votes
2answers
2k views

Not able to access iframe with random dynamic ids using Selenium webdriver.io

I am automating the payment page which is having the option to select payment method. On selection of credit card payment option, one iframe is generated from the third party and loaded with dynamic ...
-1
votes
4answers
2k views

Selenium, unable to locate xpath or form name [closed]

I'm trying to locate a form, but the application doesn't have form names. I tried: driver.findElement(By.xpath("html/body/div/div/main/div/div[2]/div/form")); driver.FindElement(By.XPath("//input[...
1
vote
1answer
2k views

How to get List of similar elements using javascriptexecutor using selenium webdriver

I want to get list of similar element into arraylist using javascriptexecutor. However able to store only single element using javascriptexecutor. Here is my code: JavascriptExecutor js = (...
3
votes
1answer
785 views

How to locate an element in Ranorex when its attribute is not recognised?

I have been working a test automation project using Ranorex; an element was automatically identified with one of its attribute but it does not work. From its HTML code, this element can be uniquely ...
2
votes
2answers
14k views

Finding the Parent of an Element, then Clicking a Button Child of that Parent in C#/Selenium

I am quite stuck while testing a web application. I am trying to check to ensure a class exists - in this case the class of "originalProductPrice" - out of a group of identical looking li items. Only ...
0
votes
1answer
401 views

switching windows in Selenium

I am having problem understanding the syntax of how to switch between windows. The standard syntax is: Set <String> stringHandles = driver.getWindowHandles(); for (String handle:stringHandles) {...
5
votes
1answer
207 views

Canonical way to define page objects/locators in big enterprise level automation projects?

Background: As automation testers in selenium world, we have to work on multiple languages/frameworks(wrappers over selenium) in different projects however there is an one thing which remains common ...
3
votes
1answer
1k views

Chrome 62: sendkeys seems to be causing chrome://settings/help to open

An automated Selenium-webdriver / node.js test that I have used daily for years (with regular modifications) seems to be acting up in Chrome 62 on the Mac (Version 62.0.3202.62 (Official Build) (64-...
2
votes
3answers
163 views

Stop social media connection request in selenium

I'm currently working on a website which takes 2-3 MINS to complete the page load. Even after all the elements are visible,still browser keeps loading. I have figured it out that happens because the ...
1
vote
0answers
448 views

Unable to locate the elements of SmartGWT application using Selenium in IE browser

I'm testing a GWT + SMARTGWT application and I'm trying to locate the elements of this web application using Selenium Webdriver. The method which I have used to locate the elements is by the relative ...
2
votes
3answers
958 views

Advantages and disadvantages of non-Selenium web automation tools

Currently at my company we are using webdriverio + selenium for e2e automated testing. In the past months we have experienced a lot of trouble making our tests work correctly, and most of the cases ...
1
vote
0answers
355 views

How to handle browser language notification in android using appium?

I was trying to automate a website which is in german. But when I run the test on android device using chrome browser, language translator notification appears. Can anyone let me know how to handle ...
2
votes
2answers
625 views

Is there any open source tool to automate oracle POS Xstore Application?

I am looking for a tool to automate Oracle XStore Application, Suitable tool to automate Oracle Xstore POS system. Application: oracle Xstore OS: windows
-2
votes
1answer
1k views

Advantages and disadvantages of learning Python Vs learnng Javascript?

I work on automation scripts written in selenium using Java at my current job. I want to expand my skills and learn a scripting language to help with more advanced UI automation. After research I ...
1
vote
1answer
342 views

Does SauceLabs or Browserstack support testing chinese browsers? If not what tool should I go for?

Testing an application, for both desktop and mobile, aiming the Chinese market. I need to conduct cross-browser testing on some of the most popular chinese browsers like QQ , 360, UC, Baidu browsers ...
0
votes
1answer
2k views

Getting NullPointerException when tried to test two different pages

I am new to automation testing and I have been stuck on testing two different pages (HomePage and AboutPage) BasePage.java public class BasePage { protected WebDriver driver; public BasePage(...
1
vote
0answers
323 views

How can I handle google popup and toast messages at the same time using Selenium? [closed]

On my website when I log in, toaster messages will appear on the screen and at the same time a Google popup is generated. How can I solve this problem? After logging in I'm trying to click on my ...
3
votes
2answers
5k views

Cannot get attribute value when using xpath

I met a problem when I try to get an attribute of one tag. Here is the html code: <rect x="66.5" y="43.5" width="26" height="13" fill="#86E067" stroke="#ffffff" stroke-width="1" class="...
3
votes
1answer
188 views

In what circumstances we should use selenium?

I am new to selenium and I am using selenium to do the testing but I am confused right now. For example, the website I am working on contains lots of data, however all of them are from database. ...
2
votes
1answer
7k views

Selenium element properties: Selected vs Enabled vs Displayed

I recently tried to locate an element. I was unable to identify an xpath and after putting a list in a loop. I noticed that for some elements isDisplayed() returned false, but isEnabled() true. How ...
0
votes
1answer
2k views

Exception: waiting for alert to be present

I need to open a site that contain authentication alert. To handle that alert I tried following code but no success: try { WebDriverWait wait = new WebDriverWait(driver, 100); wait.until(...
0
votes
1answer
591 views

Can a Selenium IDE test continue when an assertElementPresent fails? [closed]

I'm just a little stuck with the Syntax and how I put up to stepsgroup adds && assertElementPresent css=span:contains('shares') How can I edit the script to do this? &...
0
votes
1answer
617 views

How to use --force-dev-mode-highlighting

I have to run an extension but a warning "Disable Developer Mode" always block the test case to complete. I know a command line switch that will disable this warning --force-dev-mode-highlighting but ...
7
votes
4answers
2k views

Selenium alternatives [closed]

I found lots of information about this topic, however, it wasn't really up to date. I'm interested if there is a better alternative to Selenium WebDriver for a Web Application/Windows/Chrome/Mostly ...
1
vote
1answer
2k views

Selenium Chrome basic authentication secure method

I'm still new to automation and what i want to know if this method is secure in bypassing basic authentication, considering we are using https. By browsing i couldn't find any better practices of this ...
2
votes
2answers
40 views

Can I merge test expectation with test data together?

I am coding a test automation framework which uses data-driven approach. The whole project is to test an online shopping web page. An Excel sheet was created to contain all test data as following: ...
4
votes
1answer
477 views

Watir can't locate an element with xpath [closed]

I got this html (It's simplified to see the deep) <html> <frameset> <frame> #document <html> <body> ...
2
votes
2answers
62 views

Work requires answering dozens of drop down questions that are almost always the same. It is written in Java, can I automate answering them? [closed]

My google skills have added little to my knowledge of this subject. I apologize for not having a better background in this topic, however if I continue to answer these redundant questions I may break,...
3
votes
6answers
70k views

How to switch from one tab to another tab in chrome

Please help how to switch from one tab to another tab in chrome and to change focus on child tab.
5
votes
2answers
15k views

How to verify if a web page has been properly loaded or not?

I want to verify if a web page has been loaded properly. My approach is: Verify the URL is shown as expected. Verify the element at the top left most corner has been shown. Verify the element at the ...
0
votes
2answers
11k views

Test zoom levels of page on browsers

To zoom in webpage on browser I searched solution and used two ways but on both I am receiving an error can someone please help me identify where is the mistake or whats wrong with the code. Browser I ...
2
votes
2answers
485 views

Entire desktop screenshot on Chrome and Firefox

I searched alot on forums to find command for capturing everything displayed on the desktop (not just the browser window), but found that this is a bug or limitation. The questions I found were of 2 ...
1
vote
3answers
725 views

Properties File in Selenium

I am still unclear why you need Properties file in Selenium. It seems to me that everything stored there can be more effectively store either in Excel or with @DataProvider and @Parameters annotations,...
0
votes
2answers
544 views

How do you enter data from a jhtml Area element using selenium?

Now in the application that i have to automate, there's a jhtml Area element. This is a sample jhtml area: http://pietschsoft.com/demo/jhtmlarea/. So the jhtml area has two elements for the text you ...

1 2
3
4 5
8