2022 Developer Survey is open! Take survey.

Questions tagged [selenium]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
58 views

Is there any solution for easy maintenance of Selenium automation scripts for testing Salesforce?

Whenever there is salesforce upgrade, the Xpaths of lot of web elements get effected. This causes us to maintain them. Is there any better solution to this problem? I have found a solution for input ...
user avatar
0 votes
1 answer
76 views

Selenium Lightning test failure of not finding "one-app-nav-bar-item-root"

We are looking at some Java Selenium/Selenide tests that we have taken over and running those we more or less fail at the first hurdle in this tagToGo method: public void goToTab(String value) { ...
user avatar
  • 129k
1 vote
1 answer
37 views

Update an object - SOAP API /Selenium Java

I've faced an issue. I'm trying to create a method to update a requirement in Salesforce. (I'm using Selenium - Java) and I have the following error. " The method update(com.sforce.soap....
user avatar
  • 13
0 votes
2 answers
72 views

Salesforce Dom dynamic behaviour

Last week the structure is with li elements and now the HTML structure is changed. This is for Salesforce Contacts object.Please see the image. <div id="suggestionsList"> <ul&...
user avatar
  • 3
0 votes
1 answer
55 views

Salesforce lightning components qa automation [closed]

I am new to Salesforce testing, we have an automation suite written with protractor currently and its working fine with classic version of sf. However now most of the new requests are towards ...
user avatar
0 votes
1 answer
87 views

I want to auto-populate rich text area field using selenium webdriver java

I am getting "element not interactable" using sendKeys() have tried using explicit wait so it is giving stale element error. I am able to auto-click using js.executeScript("arguments[0]....
user avatar
0 votes
0 answers
49 views

What is the best way to do Automation?

I'm running into issues with Cypressio and Selenium, and I'm pretty new to automation testing within Salesforce. What is the best thing to do? How to do it? & what are the tools that you recommend ...
user avatar
  • 101
0 votes
0 answers
34 views

How can I get a list of fields that I added to one form in Salesforce?

I'm pretty new to Salesforce and I'm wondering if there is a way to get all the fields and HTML elements that I'm using with those forms to do some future testing with cypress and selenium. Does ...
user avatar
  • 101
0 votes
1 answer
25 views

Lightning examples

I have been writing Java/Chromedriver/Selenium code to SQA some Salesforce (apptus) pages. The project manager says they are going to Lighning in several months. I am trying to get a jump start on ...
user avatar
  • 101
1 vote
0 answers
274 views

Lighting web component UI testing with robotframework-selenium: Not able to interact with LWC element

I am trying to automate a page with LWC, But due to shadow DOM, I am able to interact with element. Is there a way where we can interact with the element.
user avatar
2 votes
1 answer
451 views

Salesforce mobile automation- Appium does not identify individual elements in WebView

We are using Selenium and Appium to automate salesforce mobile app on mobile devices. On Android devices Appium is not able to identify individual elements within Webview, entire screen is identified ...
user avatar
  • 21
0 votes
1 answer
147 views

scratch org is getting created on cci task run robot command

I am trying to run a robot test on CircleCI using the command cci task run robot, but it is creating the fresh org again as it executes. I am using below commands, venv/bin/cci flow run qa_org --org ...
user avatar
0 votes
1 answer
840 views

Element has an invalid reference error while pushing the code using CCI command

I am trying to push the code using cci flow run qa_org --org dev command, But it is giving me Element has an invalid reference error Running command: sfdx force:source:push -u test-xxxxxxxxxxxx@...
user avatar
0 votes
1 answer
178 views

How to push code to an org using a CCI command?

I am trying to run a robot test on CircleCI using the command cci task run robot, but it is creating the fresh org again as it executes. How can I push the code to a newly created org? This is the ...
user avatar
1 vote
2 answers
661 views

Selenium WebDriver and Developer Console

So I'm automating some different things with Selenium WebDriver in one of our orgs. One of the more tricky ones has been interacting with the Execute Anonymous window inside of the developer console. ...
user avatar
1 vote
1 answer
3k views

How to pass multiple arguments to a test case using CumulusCI?

Problem statement: Unable to pass multiple variable values to my test case using CumulusCI command: cci task run robot... Sample Code: *** Settings *** Resource C:/Dev/myproject/robotframework/...
user avatar
1 vote
1 answer
223 views

Populate Contact Information using Selenium

I am very new to Selenium. Basically i need to populate the fields below using selenium web-driver in Visual Studio. Because of the lightning components i am having trouble using XPath. Need help ...
user avatar
0 votes
1 answer
84 views

How to implement "Get Locator" keyword from CumulusCI library?

Every implementation of Get Locator keyword I am trying is resulting into: AttributeError: 'dict' object has no attribute 'format'` please educate me with respect to the correct implementation and ...
user avatar
0 votes
1 answer
167 views

WebElement which can be located in Classic mode but failing in Lightening mode using Selenium WebDriver

I am trying to automated Salesforce using Selenium WebDriver and so far I have faced many challenges and also overcame after following the suggestions provided in the community. Here, I am facing a ...
user avatar
0 votes
1 answer
3k views

How to bypass the verification code when run test case from Selenium script?

I want to run my test case with Selenium script. But whenever I login with selenium it aways ask for verification code. I know I can do it using the Profile Id, but I want to do it with code. ...
user avatar
-1 votes
2 answers
2k views

Automation of salesforce Lightning pages using selenium

this question is related to provar automation tool which is used for salesforce automation so can you please let me know about the below comment which i get from from provar official website. Generate ...
user avatar
1 vote
1 answer
108 views

Using ids to identify page elemensts for UI testing with Selenium

We are using Selenium to test our UI and need to be able to find a reliable way to identify the elements of the page we are working with. I am working with a button and have defined an id to be able ...
user avatar
  • 2,122
2 votes
4 answers
3k views

How to use Javascript to check if a salesforce lightning page is loaded completely

I am implementing selenium automated web tests on salesforce lightning page. Between different test steps, the test need wait until the web page is completely loaded, so that the web element is ...
user avatar
1 vote
0 answers
213 views

Advantages of Cinnamon for UI test automation [closed]

We want to start automating our UI tests and have found Cinnamon that seems to be a better and more specific Salesforce testing tool. We want to use a testing tool for our managed package that has ...
user avatar
  • 2,122
17 votes
1 answer
2k views

What do you use to automate the testing of your Lightning Components?

We've written some Lightning Testing Service tests but its been hard work given the asynchronous nature of the code and that the LockerService blocks access to the underlying DOM. I'm now wondering if ...
user avatar
  • 129k
12 votes
1 answer
709 views

Testing Salesforce CPQ

I'm trying to create some meaningful tests for Salesforce CPQ. I'm trying to create Apex test classes and also UI tests with Selenium. The problem with the apex tests is that a lot of the important ...
user avatar
  • 989
9 votes
1 answer
375 views

Does the LockerService make Selenium tests impossible?

When running Lightning Testing Service tests, the impact of the LockerService is evident such as not being able to see the DOM nodes of a lightning:... component (different namespace) wrapped by one ...
user avatar
  • 129k
3 votes
0 answers
2k views

How to bypass verification code for selenium testing

I am new to use selenium to test Salesforce. It seems to me it is opening browser in a completely new session which requires login and verification code. And I need to skip the verification code to ...
user avatar
  • 12.7k
7 votes
3 answers
11k views

How to Identify Elements in Salesforce Lightning for Selenium

I am trying to automate Salesforce lightning using Selenium, but getting issues with identifying elements. Reason, its having dynamic IDs , and other attributes are either very long , or they are not ...
user avatar
0 votes
2 answers
1k views

How to test page layouts?

Functionality of some elements in the layout can be covered by unit tests. For example, in custom apex or visual force controllers. However, those functions work independent from the layouts. Unit ...
user avatar
1 vote
1 answer
544 views

Identify candidates for Selenium test automation?

Salesforce already uses both unit tests & Selenium to automate out-of-the-box features. Our developers are covering their code with unit tests. In order to avoid redundancy regarding the above, ...
user avatar
0 votes
1 answer
1k views

Unable to automate salesforce lightning components using selenium web driver

I have automated classis view in salesforce but in lightning view same elements are not recognizable by selenium webdriver. VF embedded controls are not recognizable in lightning mode
user avatar
  • 1,400
5 votes
0 answers
1k views

Selenium testing the Lightning Experience

I'm new to SalesForce and trying to use Selenium to test a page. When I check the "innerHTML" of a certain div (as selenium sees it), I see the following: <div class="test-id" data-aura-rendered-...
user avatar
1 vote
1 answer
145 views

.Net application to run Apex TC through tfs build system

I am currently automating a salesforce application using selenium and apex TC. We use the salesforce Soap api and enterprise wsdl for our DML and SOQL updates, queries, etc. We are also using the ...
user avatar
2 votes
1 answer
430 views

Is there a webdriver for Apex?

A client has scheduled jobs that use the Selenium webdriver running on a desktop machine that, at scheduled intervals, screen scrape a number of websites (requiring login information) for data which ...
user avatar
0 votes
2 answers
3k views

drop down automate xpath clarification using selenium webdriver [closed]

Application developed in salesforce and below is the code for an dropdown box, all the items in the drop down they build with <li> tag, but i dont know how to pick a particular item with this ...
user avatar
  • 101
3 votes
2 answers
484 views

Salesforce selenium testing

My testing team is using selenium to automate salesforce testing,in the process, they reference the Id's of text boxe's or drop down boxes in the automation script,this works well and good for ...
user avatar
3 votes
1 answer
2k views

Automating Salesforce Console - Selenium ?

I'm just trying to figure out if anyone has successfully completed this. From what I'm seeing id's are randomly generated and not static for each test run. Causing issues identifying iframes on the ...
user avatar
2 votes
6 answers
13k views

Is there any way around Verification Code ? I am using Selenium and Java to Automate Test

I would like to know if there is any way around the Verification Code for Salesforce? I successfully login to Salesforce but, my script stops because of the Verification screen is there a way around ...
user avatar
  • 21
5 votes
6 answers
6k views

Selenium Testing - Two Factor Authentication Problems

First time trying the forum, but today having trouble running selenium scripts with Salesforce. Everytime Im running a script locally I get a two step verification screen. I then have to input the ...
user avatar
8 votes
4 answers
4k views

UI-testing Salesforce apps with Selenium

Some aspects of our Salesforce apps can only be poorly tested or not tested at all with Apex Unit tests. Therefore we are currently investigating Java-based Selenium UI-tests. Question 1: Are you ...
user avatar
2 votes
1 answer
1k views

REST Call from Selenium with session ID is invalid

I am trying to make REST call with Apache's HTTPClient. I would like to update a record after a selenium Test. Cookie sessionId = driver.manage().getCookieNamed("sid"); PostMethod request = new ...
user avatar
3 votes
2 answers
883 views

Are Force.com DOM id-elements worthless for Selenium Testing?

I just started with Saleforce/Force.com development. I set up a couple of Selenium tests last week, but they crashed today, since Salesforce upgraded to Version Winter '14 on my Dev Sandbox. My ...
user avatar
2 votes
2 answers
568 views

Does any one configured jenkins & selenium for CI in force.com

Are there any tutorials for config jenkins which fires selenium to run tests.
user avatar