Closed hafiihzafarhana closed 4 days ago
Please add a valid Rod Version: v0.0.0
to your issue. Current version is v0.116.1
Please fix the format of your markdown:
19 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1) I will check which question..."]
24 MD036/no-emphasis-as-heading/no-emphasis-as-header Emphasis used instead of a heading [Context: "Before getting to my problem, ..."]
27 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "- I can't retrieve element of ..."]
31 MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "```"]
31 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
174 MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "```"]
174 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
216 MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "```"]
216 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
234 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "- I was debug the element on w..."]
235 MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "```"]
235 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
240:21 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]
generated by check-issue
Hi, I have a problem about how to retrieve element on HTML with
ElementByJS
method.This is my goal? 1 Get title on Google Form (Done) 2 Get describe on Google Form (Done) 3 Get number of pages (✖️) 4 Get number of questions each page and sum them (✖️)
Well, numbers 3 and 4 can be solved if the questions on each page are not
mandatory
. Example:Mandatory question![image](https://github.com/go-rod/rod/assets/71125093/19c96895-25c5-4355-aa7d-f9eff00dc762)
Not Mandatory question![image](https://github.com/go-rod/rod/assets/71125093/8599c3e3-3086-481f-a5ae-d89be11d6d16)
So, what is my solution? (Algorithm) 1) I will check which questions on a particular page are mandatory to fill in 2) I will check the question type. Such as paragraph questions, short answers, etc. And fill in the values automatically in each field, if the questions not mandatory to fill, just avoid them 3) Hit "Next button" 4) Looping until the end of page
Before getting to my problem, I've finished autofilling with a few other types of questions
My problem:
My code:
Structure of HTML:
I want to get this element:
But, i cant find that element.
My google form link: https://docs.google.com/forms/d/e/1FAIpQLSdsd0M1s2XddKguecmugBFawZOEaRBxZCGsgTrkY9NFtJ2wuA/viewform