Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Doug Simmons
@mach6
@raviteja50100 the locator key name in the yaml needs to end in the name of an element type. do you have a custom type called TextFieldTest? Otherwise, while TextField is a valid element type out of the box, TestFieldTest is not. Take a look here for the HTML elements that are included by default, https://github.com/paypal/SeLion/blob/develop/codegen/src/main/java/com/paypal/selion/elements/HtmlSeLionElementSet.java#L43-L70
Doug Simmons
@mach6
@nvidiapriyadarshini_gitlab you should be able to get selenium grid extras to work with selion-grid-jar-with-deps aka SeLion Enhanced Grid.. While I have not tested it with se grid extras, any jars that you drop in the {selionHome} are automatically added to the CLASSPATH when selion-grid-jar-with-deps boots.. Also fyi, selion-grid-jar-with-deps includes the capability to restart nodes after X sessions, which also cleans up abandoned browser instances. Take a look here -http://paypal.github.io/SeLion/html/documentation.html#selion-grid
Vidya Narayanan
@nvidiapriyadarshini_gitlab
@mach6 thanks for the note. This helps. Also for running multiple SeLion projects in Jenkins how many nodes would you recommend registering to the hub? Is it one per project?
Doug Simmons
@mach6
@nvidiapriyadarshini_gitlab it's hard to say. I think you need to do some bench-marking and determine your own needs here.. one per project does not seem right to me since not all projects will always be running / using nodes at the same time, I presume
Amanda Lazar
@amandalazar
Hi, I was wondering if there is a way of implementing logic in locators when using SeLion (for example, when locators will just differ by a single character)? It seems to me that all locators must be hard-coded into the YAML files, and that no logic can be injected into this process...
Divya-tfw
@Divya-tfw
Hi guys , I have started working on selion fw , But I am not able to execute scripts . Getting following error. It would be grate if some one can help me
Screen Shot 2018-09-20 at 6.14.14 PM.png
Doug Simmons
@mach6
@amandalazar While this might not be the sort of logic you are looking to add, you can add OR conditions to PageYAML files for the locators. To do so, the | character is used. For example: https://github.com/paypal/SeLion/blob/develop/client/src/test/resources/SampleV2YamlPage.yaml
@amandalazar fyi, you can also create and register your own custom elements -- which can have more advanced logic for processing the locators.
Doug Simmons
@mach6
@Divya-tfw that error seems like an incompatibility with one of your dependencies, likely TestNG and JCommander (a transitive dependency of TestNG). If possible for your needs, downgrading to TestNG 6.9.10 should make this error go away.
Divya-tfw
@Divya-tfw
@mach6 : Thanks for ur response.Let me check
Divya-tfw
@Divya-tfw
could not lock config file /usr/local/Homebrew/.git/config: Permission denied
fatal: could not set 'core.repositoryformatversion' to '0'
Do anyone have idea why we get this issue?
Marvin Döring
@marvindoering
@mach6 Hey Doug, one question. When and how does my PR ends up in the public sonatype repository?
Marvin Döring
@marvindoering
@mach6 it seems the develop-build failed. Could you maybe take look at that?
Doug Simmons
@mach6
@marvindoering the SNAPSHOT artifacts are published by the develop build.. it had failed due to a saucelabs issue. I restarted the build and it went green.. artifacts are published now. :)
Ivan Rodriguez
@ivanrodjr
Getting an error with appium in snapshot version : com.paypal.selion SEVERE Did not find a mobile capabilities builder that supports APPIUM when specifying <parameter name="mobileNodeType" value="appium" /> or any other value. This causes an NPE ``` any help?
Doug Simmons
@mach6
@ivanrodjr did you add the appium provider as a dependency? it is not included by default in the SNAPSHOT version.. https://oss.sonatype.org/content/repositories/snapshots/com/paypal/selion/SeLion-appium-provider/
Ivan Rodriguez
@ivanrodjr
@mach6 thanks, just did that and the error went away, however bumped into a new one java.lang.NoClassDefFoundError: org/openqa/selenium/remote/JsonException seems its possible the appium provider is trying to resolve a class from selenium 2? Downgraded to 1.2.0 and that ecxeption went away but then having issues with capabilities, additionalCapabilities = ["deviceName:Nexus 5X API 26","udid:emulator-5554","platformVersionValue:8.0","appPackage:com.android.calculator2", "appActivity:com.android.calculator2.Calculator", "platformName:Android"], appName = "calculator2", mobileNodeType = "appium" sends the platform as iOS.
Yogi
@yogeshkaliyarajan
Hey, I'm getting org.openqa.selenium.SessionNotCreatedException: Unable to create new service: GeckoDriverService in win10. Team, Can you please help on this?
VIJAY BHASKAR REDDY Maramreddy
@vmaramreddy_gitlab
I am trying run tests using selion docker images .i am using gitlab ci . Since i am new to docker , i did not understand how to write a script which will wait until selion hub and nodes are ready
Did anyone write this script and used in docker compose file ?
jshinn6788
@jshinn6788
Hello, I am using yaml for data driven testing with my testng framework (java)
I am having issues parsing my yaml file for my test
Tamilan
@AmarChinnadurai_twitter
Hello, In selion how to generate testreport in excel
Tamilan
@AmarChinnadurai_twitter
Hello sir pls any one help me ...In selion how to generate automation test report in excel.
Doug Simmons
@mach6
@jshinn6788 Will you please elaborate?
Doug Simmons
@mach6
@AmarChinnadurai_twitter pass the JVM system property ENABLE_EXCEL_REPORTER_LISTENER=true .. Once set, your test output will display a line like this after the test run completes - 02.19.2019 12:20:48.728,[1] com.paypal.selion INFO Generating ExcelReport
Tamilan
@AmarChinnadurai_twitter
i tried the above given method but i can't able to find the excel output
html generated report is available but the excel report is not available in the entire output folder
BoomaRajan
@BoomaRajan
Hi
When I try to import SeLion dependency
When I ran the Test.Class.Invocation,NotFoundError for SeLionLogger
BoomaRajan
@BoomaRajan
ClassNotFoundException com.paypal.selion.logger.SeLionLogger
I have import the 1.2.0 SeLion and SeLion-Grid
Any thought on this
BoomaRajan
@BoomaRajan
Whenever import selion dependency in my project
I m facing the above issue
I am using TestNg and Selenium
Top of that using SeLion
Tamilan
@AmarChinnadurai_twitter
@mach6 i tried the above given method but i can't able to find the excel output
html generated report is available but the excel report is not available in the entire output folder
Doug Simmons
@mach6
@Tamilan I'm sorry, the system property is actually enable.excel.reporter.listener=true... Once set your test output will contain INFO lines Generating ExcelReport and Excel File Created @ .. The report will be in target/surefire-reports/Excel_Report.xls if run via mvn test .. It will be in test-output/Excel_Report.xls if run via TestNG.
Shensn
@Shensn
hi , i am from china, when i set both language and locale to "zh-CN", still fail to set language
i met a issue when using the latest selion 1.2 + appium , i tried 1.6 to 1.11 .
please help to fix this bug. thx
The error info is as follows:at org.testng.SuiteRunner.run(SuiteRunner.java:364)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:84)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1208)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1137)
at org.testng.TestNG.runSuites(TestNG.java:1049)
at org.testng.TestNG.run(TestNG.java:1017)
at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:115)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:251)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77)
Caused by: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Failed to set language: en and country: en_US (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 6.13 seconds
Tamilan
@AmarChinnadurai_twitter
@mach6 i need help anybody is here pls reply me .. i am using session sharing in my testing code when i am using this method instruction is that have to define (single threaded=true) after using this in my code i can't test multiple inputs in my automation testing .i am approaching data driven framework kindly reply me .
jbasha
@jbasha
hi am using selion 1.2.0 i see the selenium version appearing as 2.53.1, how do i update it to selenium 3, any pointers plz help.
AshwinPadmanabhan
@AshwinPadmanabhan
I am getting the below exception when i try to run the test scripts :
Exception in thread "pool-2-thread-1" java.lang.NoSuchMethodError: org.openqa.grid.common.GridRole.find([Ljava/lang/String;)Lorg/openqa/grid/common/GridRole;
at com.paypal.selion.grid.SeLionGridLauncher.boot(SeLionGridLauncher.java:112)
at com.paypal.selion.grid.ThreadedLauncher.run(ThreadedLauncher.java:110)
AshwinPadmanabhan
@AshwinPadmanabhan

Getting the following error message while running the code

08.22.2019 16:14:20.212,[1] com.paypal.selion WARNING An error occurred while processing afterInvocation: Cannot create temp directory: C:\Users\INFRAA1\AppData\Local\Temp\d9e59872-e330-4c82-866b-722588a95462
Build info: version: '2.48.2', revision: '41bccdd', time: '2015-10-09 19:59:12'
System info: host: 'bluefinlvs39', ip: '10.57.88.115', os.name: 'Windows Server 2008', os.arch: 'amd64', os.version: '6.0', java.version: '1.7.0_51'
Driver info: driver.version: unknown
Command duration or timeout: 271 milliseconds
org.openqa.selenium.WebDriverException: Cannot create temp directory: C:\Users\INFRAA1\AppData\Local\Temp\d9e59872-e330-4c82-866b-722588a95462
Build info: version: '2.48.2', revision: '41bccdd', time: '2015-10-09 19:59:12'
System info: host: 'bluefinlvs39', ip: '10.57.88.115', os.name: 'Windows Server 2008', os.arch: 'amd64', os.version: '6.0', java.version: '1.7.0_51'
Driver info: driver.version: unknown
Command duration or timeout: 271 milliseconds
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:214)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:166)
at org.openqa.selenium.remote.JsonWireProtocolResponse.lambda$errorHandler$0(JsonWireProtocolResponse.java:54)
at org.openqa.selenium.remote.HandshakeResponse.lambda$getResponseFunction$0(HandshakeResponse.java:30)
at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$0(ProtocolHandshake.java:126)
at java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
at java.util.Spliterators$ArraySpliterator.tryAdvance(Unknown Source)
at java.util.stream.ReferencePipeline.forEachWithCancel(Unknown Source)
at java.util.stream.AbstractPipeline.copyIntoWithCancel(Unknown Source)
at java.util.stream.AbstractPipeline.copyInto(Unknown Source)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
at java.util.stream.FindOps$FindOp.evaluateSequential(Unknown Source)
at java.util.stream.AbstractPipeline.evaluate(Unknown Source)
at java.util.stream.ReferencePipeline.findFirst(Unknown Source)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:128)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:74)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:136)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:131)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:144)
at com.paypal.selion.internal.platform.grid.browsercapabilities.WebDriverFactory.createDriverInstance(WebDriverFactory.java:99)
at com.paypal.selion.internal.platform.grid.browsercapabilities.WebDriverFactory.createInstance(WebDriverFactory.java:86)
at com.paypal.selion.internal.platform.grid.WebTestSession.createSession(WebTestSession.java:145)
at com.paypal.selion.internal.platform.grid.WebTestSession.startSesion(WebTestSession.java:161)
at com.paypal.selion.platform.grid.Grid.driver(Grid.java:107)