How do you select an element in a dropdown who's if using it's id doesn't work? - selenium

I am using Katalon recorder(chrome extension) to automate a form filling operation on the page "stuvia.com/upload" but I can't click on a dropdown element.
Here is the execution log.
[info] Playing test case Untitled Test Suite / Stuvia upload
[info] Time: Sat Apr 09 2022 01:05:04 GMT-0700 (Pacific Daylight Time) Timestamp: 1649491504473
[info] OS: Windows Version: 10
[info] Browser: Chrome Version: 100.0
[info] If the test cannot start, please refresh the active browser tab
[info] Executing: | open | https://www.stuvia.com/en-us/upload | |
[info] Wait for the new page to be fully loaded
[info] Executing: | click | id=aggreement-basisgegevens | |
[info] Wait for the new page to be fully loaded
[info] Executing: | click | xpath=//button[#type='submit'] | |
[info] Wait for the new page to be fully loaded
I encounter the problem here. The container's element selection is not recorded.
[info] Executing: | click | id=select2-type-doc-container | |
I tried to manually add the script using the id of the element I wished to select (w598-6) but the text box remained empty after running it again.
[info] Executing: | click | id=select2-type-doc-container
[info] Wait until the element is found
[info] Cannot find element id=select2-type-doc-container-result-w598-6 after 1000ms switch to id=select2-type-doc-container
[info] Executing: | click | id=select2-type-doc-container | |
[info] Time: Sat Apr 09 2022 01:05:33 GMT-0700 (Pacific Daylight Time) Timestamp: 1649491533850
[info] Test case passed
I think I incorrectly used the id but have no idea how to do it.
A nudge in the right direction would be highly appreciated.

Related

USRP x310 responds to ping but does not responds to uhd_find_devices or uhd_usrp_probe

I am having some trouble with my USRP x310. This question might seem duplicate but I have already tried all the possible solution that I was able to find but I am still not able to resolve it.
Here are some of the posts that I followed and were similar to the problem I am facing.
1. http://lists.ettus.com/pipermail/usrp-users_lists.ettus.com/2015-January/040356.html
2. https://www.ruby-forum.com/t/a-strange-problem-with-no-uhd-devices-found-when-ping-192-168-10-2-is-ok/217561
I even posted a question at the NI discussion forum here is the URL, But I haven't received any response. I also tried to make a post at discuss-gnuradio#gnu.org and usrp-users#lists.ettus.com but for some reason the question is not yet posted so now I turnig to the good old trusted stackoverflow in search of some help.
Here is problem I am facing.
I was able to run my USRP x310 without any problem till last week but when I turned it on this week to run some experiments using srsLTE, when I ran srsenb it started gaving error "no compatible rf-frontend found". So to test the connectivity of x310 with the host computer, I ran 'uhd_find_devices' and 'uhd_usrp_probe'
Here is the output of the commands.
raghav#raghav-XPS:~$ uhd_find_devices
[INFO] [UHD] linux; GNU C++ version 7.5.0; Boost_106501; UHD_3.15.0.0-release
No UHD Devices Found
raghav#raghav-XPS:~$ uhd_usrp_probe
[INFO] [UHD] linux; GNU C++ version 7.5.0; Boost_106501; UHD_3.15.0.0-release
Error: LookupError: KeyError: No devices found for ----->
Empty Device Address
Then I checked the hardware and I was able to see the sfp+ light at port 0 which is correct, so I tried to ping the x310 'ping 192.168.10.2' and the device responded to ping without any loss in packets. So I tried to run 'uhd_find_devices' and 'uhd_usrp_probe' by providing the address of the device as the argument and then I was able to see the correct output.
Here is the outputs:
raghav#raghav-XPS:~$ uhd_find_devices --args addr=192.168.10.2
[INFO] [UHD] linux; GNU C++ version 7.5.0; Boost_106501; UHD_3.15.0.0-release
--------------------------------------------------
-- UHD Device 0
--------------------------------------------------
Device Address:
serial: 31EC216
addr: 192.168.10.2
fpga: HG
name:
product: X310
type: x300
raghav#raghav-XPS:~$ uhd_usrp_probe --args addr=192.168.10.2
[INFO] [UHD] linux; GNU C++ version 7.5.0; Boost_106501; UHD_3.15.0.0-release
[INFO] [X300] X300 initialization sequence...
[INFO] [X300] Maximum frame size: 1472 bytes.
[INFO] [X300] Radio 1x clock: 200 MHz
[INFO] [GPS] No GPSDO found
[INFO] [0/DmaFIFO_0] Initializing block control (NOC ID: 0xF1F0D00000000000)
[INFO] [0/DmaFIFO_0] BIST passed (Throughput: 1319 MB/s)
[INFO] [0/DmaFIFO_0] BIST passed (Throughput: 1314 MB/s)
[INFO] [0/Radio_0] Initializing block control (NOC ID: 0x12AD100000000001)
[INFO] [0/Radio_1] Initializing block control (NOC ID: 0x12AD100000000001)
[INFO] [0/DDC_0] Initializing block control (NOC ID: 0xDDC0000000000000)
[INFO] [0/DDC_1] Initializing block control (NOC ID: 0xDDC0000000000000)
[INFO] [0/DUC_0] Initializing block control (NOC ID: 0xD0C0000000000000)
[INFO] [0/DUC_1] Initializing block control (NOC ID: 0xD0C0000000000000)
_____________________________________________________
/
| Device: X-Series Device
| _____________________________________________________
| /
| | Mboard: X310
| | revision: 11
| | revision_compat: 7
| | product: 30818
| | mac-addr0: 00:80:2f:31:49:67
| | mac-addr1: 00:80:2f:31:49:68
| | gateway: 192.168.10.1
| | ip-addr0: 192.168.10.2
| | subnet0: 255.255.255.0
| | ip-addr1: 192.168.20.2
| | subnet1: 255.255.255.0
| | ip-addr2: 192.168.30.2
| | subnet2: 255.255.255.0
| | ip-addr3: 192.168.40.2
| | subnet3: 255.255.255.0
| | serial: 31EC216
| | FW Version: 6.0
| | FPGA Version: 36.0
| | FPGA git hash: fde2a94
| | RFNoC capable: Yes
.
.
.
.
I have already tried to update the fpga of the x310, redid the network connection setup and even reinstalled uhd drivers but nothing helped so far.
I would really appreciate if someone can help me with this issue.
This is a classical case of "computer does not let through traffic from broadcast addresses" as used for device discovery.
Hence, When trying to use my USRP in GNU Radio, I get a " No devices found for ----->" error partially applies. Make sure your PC's firewall is configured to let through packets from and for broadcast addresses.

Run PLay Framework 2.x in IntelliJ IDEA using SBT task auto stop server

I try to run Play project in IntelliJ IDEA. i follow this document.
this is my config. api is my sub project
But when I hit run icon, my service start successful and immediately AkkaHttpServer - Stopping server. then I type api/run in sbt shell, my service start successful and work normally. this issue only happen when I check User sbt shell in config
this is my log in sbt shell
"C:\Program Files\Java\jdk1.8.0_251\bin\java.exe" -server -Xmx1536M -Dsbt.supershell=false -Didea.managed=true -Dfile.encoding=UTF-8 -Dsbt.version=1.3.8 -Dsbt.log.noformat=true -jar C:\Users\LAP13556-local\AppData\Roaming\JetBrains\IntelliJIdea2020.1\plugins\Scala\launcher\sbt-launch.jar early(addPluginSbtFile=\"\"\"C:\Users\LAP13556-local\AppData\Local\Temp\idea979.sbt\"\"\") "; set ideaPort in Global := 51722 ; idea-shell"
[info] Loading global plugins from C:\Users\LAP13556-local\.sbt\1.0\plugins
[info] Loading settings for project crm-server-build from plugins.sbt,idea979.sbt ...
[info] Loading project definition from C:\Users\...\crm-server\project
[info] Loading settings for project crm-server from build.sbt ...
[info] Set current project to crm-server (in build file:/C:/Users/.../crm-server/)
[info] Defining Global / ideaPort
[info] The new value will be used by Compile / compile, Test / compile and 3 others.
[info] Run `last` for details.
[info] Reapplying settings...
[info] Set current project to crm-server (in build file:/C:/Users/.../crm-server/)
[IJ]sbt:crm-server> api/run
--- (Running the application, auto-reloading is enabled) ---
[info] p.c.s.AkkaHttpServer - Listening for HTTP on /0:0:0:0:0:0:0:0:9000
(Server started, use Enter to stop and go back to the console...)
[info] p.c.s.AkkaHttpServer - Stopping server...
[success] Total time: 26 s, completed Jul 31, 2020 9:26:28 AM
[IJ]sbt:crm-server> api/run // I type this command
--- (Running the application, auto-reloading is enabled) ---
[info] p.c.s.AkkaHttpServer - Listening for HTTP on /0:0:0:0:0:0:0:0:9000
(Server started, use Enter to stop and go back to the console...)
Can anyone tell me the reason. Thank you.

How to configure serenity report thread count?

By default Serenity report thread set to 80, during report generation it freezes the machine and I could not find anywhere to configure thread count , as can be seen from below written Test result report, Configured report threads:80, anyone knows how to change it?
Generating HTML Outcome Reports: false
[INFO] Generating test results for 70 tests
[INFO] 149 requirements loaded after 679 ms
[INFO] 149 related requirements found after 679 ms
[INFO] Generating test outcome reports: false
[INFO] Starting generating reports: 769 ms
[INFO] Configured report threads: 80
[INFO] Finished generating test results for 70 tests after 8886 ms
GENERATE CUSTOM REPORTS
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 05:32 min
[INFO] Finished at: 2017-05-13T00:24:30+01:00
[INFO] Final Memory: 52M/1305M
Regarding the default value you are seeing:
By default Serenity report thread set to 80 [...]
You are probably using a quad-core CPU with 8 virtual logical cores (SMT) because the default depends on the number of processors that are available to the Java virtual machine.
Serenity uses that number to initialize the size of the thread pool it uses during report generation.
Here is how to change it:
Create a serenity.properties file
Set the number of threads via the report.threads property
The serenity.properties file is looked up in multiple locations. I recommend that create one for each of your test modules.

Does Anyone know if there is any incompatibility between COMETD and JERSEY 9? Last version of Jetty is incompatible I think

After trying to configure maven to work with the last Jetty version (embedded JETTY 9) , I tried to use cometd (last version is 2.5.1) and I figured out that is not possible to make it work.
As you can see below , it seems there is compilation failure is due to type 9.0.0.v20130308 plus version 2.5.1 of artifactID cometd-websocket-jetty.
Honestly I can't get how possible is that the new Jetty version,which improved websocket, doesn't work, I guess I've been doing something wrong so if someone either knows how or have done it please let me know how I can fix it.
By the way I use jdk 1.7.0_09.
`[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory
...\apps\business-app\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) # SOKO-business ---
[INFO] Compiling 79 source files to
...\apps\business-app\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] ...\apps\business-app\src\main\java\com\igz\soko\business\Main.java:[38,12] **error: cannot access ContainerLifeCycle**
[ERROR] ...\apps\business-app\src\main\java\com\igz\soko\business\Main.java:[59,14] **error: method start in class Server cannot be applied to given types;**
[INFO] 2 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.936s
[INFO] Finished at: Thu Apr 04 16:12:19 CEST 2013
[INFO] Final Memory: 14M/177M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler- plugin:2.3.2:compile (default-compile) on project SOKO-business: Compilation failure: Compilation failure:
[ERROR] ...\bbv97\apps\business-app\src\main\java\com\igz\soko\business\Main.java: [38,12] error: cannot access ContainerLifeCycle
[ERROR] ...\bbv97\apps\business-app\src\main\java\com\igz\soko\business\Main.java: [59,14] error: method start in class Server cannot be applied to given types;`
cheers!
D
CometD 2.x is incompatible with Jetty 9.
You can run CometD 2.x on Jetty 7 and Jetty 8, with JDK 5 or greater.
CometD 3 is compatible with Jetty 9, and there will be a CometD 3 preview release soon.

How to get notified of updates to public maven repositories for new plugins?

Are there any tools which will notifiy you automatically of any new plugin additions from public maven repositories (e.g. Apache | Codehaus | JBoss | Sourceforge maven repository ...)
There is now an excellent site: https://www.artifact-listener.org/
Maven Versions Plugin
Not an automatic solution but you can use the Maven Versions Plugin has a versions:display-plugin-updates goal that will check all the plugins and reports used in your project and display a list of those plugins with newer versions available. Here is an example of the output it produces:
[INFO] ------------------------------------------------------------------------
[INFO] Building Unnamed - org.codehaus.mojo.versions-maven-plugin.it:parent:pom:2.0
[INFO] task-segment: [versions:display-plugin-updates]
[INFO] ------------------------------------------------------------------------
[INFO] [versions:display-plugin-updates]
[INFO]
[INFO] The following plugin updates are available:
[INFO] maven-checkstyle-plugin .................................. 2.1 -> 2.2
[INFO] maven-clean-plugin ....................................... 2.1 -> 2.2
[INFO] maven-deploy-plugin ...................................... 2.3 -> 2.4
[INFO] maven-javadoc-plugin ..................................... 2.4 -> 2.5
[INFO] maven-site-plugin .......................... 2.0-beta-6 -> 2.0-beta-7
[INFO]
[WARNING] The following plugins do not have their version specified:
[WARNING] maven-compiler-plugin ..................... (from super-pom) 2.0.2
[WARNING] maven-deploy-plugin ......................... (from super-pom) 2.3
[WARNING] maven-install-plugin ........................ (from super-pom) 2.2
[WARNING] maven-javadoc-plugin ........................ (from super-pom) 2.4
[WARNING] maven-site-plugin .................... (from super-pom) 2.0-beta-6
[WARNING] org.codehaus.mojo:build-helper-maven-plugin .................. 1.2
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Mon Sep 01 15:55:18 IST 2008
[INFO] Final Memory: 6M/104M
[INFO] ------------------------------------------------------------------------
It can also be used to produce a report (part of the site) that you could for example generate each night.
I was not necessarily looking for updates on the libraries used in my project, but was interested in obtaining regular updates on certain products which I am interested in.
For this, the best option might be to subscribe to the relevant mailing lists (by mail or RSS) and to track announcements.