Questions tagged [selenium]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
43 views

Does early adoption of adding "Aura local ID's" to element attributes make for more Automation friendly, Lightning components?

My company is migrating to Salesforce and the automation team wants the ability to use Java Selenium baked in. Will the system-wide inclusion of Aura Local IDs (as related to Component ID's Link) ...
Shannon Higgins's user avatar
0 votes
0 answers
215 views

Selenium with Python - Testing Salesforce Oppurtunity - Not Working

I'm trying to Automate the basic click on Opportunity Tab Functionality on my Salesforce Page. Below is the code, import time from selenium import webdriver from selenium.webdriver.chrome.options ...
Sir Percy Blakeney's user avatar
1 vote
1 answer
896 views

How to simulate sfdx:force:org:open?

I want to write few automation that will run on cli and use sfdx force:org:open. How do I simulate the command? The automation needs the url that sfdx... command leads to in the browser.Example I want ...
Harsh Prakash Agarwal's user avatar
0 votes
1 answer
376 views

Salesforce Lightning - Selenium UI Tests- Locate element | Locate element from frame source

I am using Selenium and Java for Salesforce UI test automation. On the Field Service page, Gantt chart and Service Appointment feature is there. Both these features are in a frame source. While ...
Akshay J's user avatar
3 votes
1 answer
453 views

Salesforce Lightning - Selenium UI Tests - Inspect element using Developer tools | DOM response/loading is very slow

I am working on Salesforce Lightning UI test automation using Selenium. While locating the elements, need to frequently open the Developer Tools section of Chrome/Edge and search for the locators (...
Akshay J's user avatar
0 votes
1 answer
99 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 ...
Venkata pratheek reddy chavva's user avatar
0 votes
1 answer
297 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) { ...
Keith C's user avatar
  • 135k
1 vote
1 answer
180 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....
Test's user avatar
  • 13
0 votes
2 answers
214 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&...
stdk's user avatar
  • 3
0 votes
1 answer
163 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 ...
SeleniumBeginner's user avatar
0 votes
1 answer
321 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]....
Mansi Palav's user avatar
0 votes
0 answers
61 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 ...
Hvaandres's user avatar
  • 111
0 votes
0 answers
43 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 ...
Hvaandres's user avatar
  • 111
0 votes
1 answer
30 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 ...
Tony's user avatar
  • 101
2 votes
0 answers
405 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.
Pronit Agrawal's user avatar
2 votes
1 answer
596 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 ...
Uday's user avatar
  • 21
0 votes
1 answer
231 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 ...
Pronit Agrawal's user avatar
0 votes
1 answer
2k 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@...
Pronit Agrawal's user avatar
0 votes
1 answer
315 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 ...
Pronit Agrawal's user avatar
1 vote
2 answers
1k 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. ...
trebleCode's user avatar
1 vote
1 answer
4k 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/...
vish4444's user avatar
1 vote
1 answer
431 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 ...
Bikal001's user avatar
0 votes
1 answer
98 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 ...
vish4444's user avatar
0 votes
1 answer
289 views

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

I am trying to automate 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 ...
user63787's user avatar
0 votes
2 answers
5k 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. ...
SalesforceFolks's 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 ...
vishnu sharma's user avatar
1 vote
1 answer
139 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 ...
Jorjani's user avatar
  • 2,192
2 votes
4 answers
4k 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 ...
Juewei Jin's user avatar
1 vote
0 answers
230 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 ...
Jorjani's user avatar
  • 2,192
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 ...
Keith C's user avatar
  • 135k
12 votes
1 answer
826 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 ...
brezotom's user avatar
  • 1,057
9 votes
1 answer
395 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 ...
Keith C's user avatar
  • 135k
3 votes
0 answers
3k 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 ...
Lance Shi's user avatar
  • 13k
7 votes
3 answers
14k 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 ...
AbhishekTiwari's user avatar
0 votes
2 answers
2k 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 ...
Dingredient's user avatar
1 vote
1 answer
583 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, ...
Dingredient's 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
Arun SFDC's user avatar
  • 1,448
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-...
user2709365's user avatar
1 vote
1 answer
155 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 ...
Nicole Phillips's user avatar
2 votes
1 answer
618 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 ...
LucidLunatic's user avatar
0 votes
2 answers
4k 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 ...
Prabu's user avatar
  • 101
3 votes
2 answers
529 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 ...
user2945545's 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 ...
Londoner_Tom's user avatar
3 votes
6 answers
14k 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 ...
llacey's user avatar
  • 31
5 votes
6 answers
7k 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 ...
Londoner_Tom's 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 ...
Robert Sösemann's user avatar
2 votes
1 answer
2k 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 ...
Mathias Maciossek's user avatar
3 votes
2 answers
939 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 ...
Mathias Maciossek's user avatar
2 votes
2 answers
584 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.
Ugesh Gali's user avatar