desafios | Desafios para prática nos fundamentos/lógica de programação
kandi X-RAY | desafios Summary
kandi X-RAY | desafios Summary
Desafios para prática nos fundamentos/lógica de programação.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of desafios
desafios Key Features
desafios Examples and Code Snippets
Community Discussions
Trending Discussions on desafios
QUESTION
I'm trying to scrape the text from a list, this is the URL:
https://www.eneba.com/es/lego-dimensions-starter-pack-playstation-4
This is my code:
1º I find de list (ul)
2º for each li in ul print the text
...ANSWER
Answered 2021-May-12 at 14:22There are no elements located by the xpath
you defined '//h2[2]/following-sibling::ul
.
This is why ul
is actually a null
and li
is an empty list.
QUESTION
The query below is showing some duplicate and wrong values:
...ANSWER
Answered 2020-Sep-28 at 15:08The problem is that view_stats
and submission_stats
have multiple rows per challenge_id
.
The JOIN
s in the query happen before the GROUP BY
and the SUM
. So imagine, the result set of your query without GROUP BY
and SUM
.
A simplified example would be:
QUESTION
I'm trying to get the nodes inside a JSON request, this: https://store.steampowered.com/api/appdetails?appids=731490
But it's returning a format that a online json convert doesn't recognize and i can't get the values of nodes with C#.
Currently, i'm trying:
...ANSWER
Answered 2020-Mar-02 at 20:57JObject.SelectToken
expects a path to a particular token. It doesn't traverse the object to find anything with a matching name.
Looking at the object, the root object seems to have a single property with the key being the app id. That in turn has two properties, success
and data
, with data
containing the actual info you seek.
The following works for me:
QUESTION
I'm using Selenium and Python to test my website and i found a problem. After clicking an anchor tag, i'm not able to find an input on the page.
I've found two "solutions" for this problem here in StackOverflow but they don't work for me.
This is my Python code:
...ANSWER
Answered 2018-Mar-14 at 01:10The problem isn't with the registration form. The problem is with the outer loop you use to find and click the link to the registration page.
The CSS selector div a
matches 7 elements—the 4th of which is the link to the registration page. After you click the 4th link, the browser navigates to the registration page and your vista_registro()
function is excecuted—successfully.
After the function completes, it returns to the loop, where you attempt to click the 5th link. Because the browser is no longer on the home page, the elements you're looping over are "stale"—that is, they no longer exist on the page (they belonged to the previous page). Hence, a StaleElementReferenceException
is raised.
You likely want to stop looping over the links after you click the link to the registration page. The quickest way to do that is to add a break
after your call to vista_registro()
.
But there's a much simpler way to find a link with some particular text in Selenium: find_element_by_link_text
.
QUESTION
First question ever here and a total newbie one.
I'm trying to write a script in .p5 that load a .json file and print out all the results for a given category. If I call one specific entry it prints out the result but I didn't figure out why it didn't print when a try doing a loop.
Like this:
...ANSWER
Answered 2017-May-10 at 14:20QUESTION
I'm trying to execute two select statements but it shows me only the first one. I tryed to use foo->nextRowset();
but it doesn't work, he stops show me the first query. how can I get the content of the 2 querys? I'm doing this way cuz I need to merge this content on my front end.
PHP:
...ANSWER
Answered 2017-Apr-25 at 02:29You need to execute each statement separately:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install desafios
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page