mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 13:12:46 +00:00 
			
		
		
		
	Browser+WebContent+WebDriver: Move Get Element Property to WebContent
This commit is contained in:
		
							parent
							
								
									1bc94e135f
								
							
						
					
					
						commit
						3c00d0e92b
					
				
					 16 changed files with 35 additions and 74 deletions
				
			
		|  | @ -668,12 +668,11 @@ Web::WebDriver::Response Client::handle_get_element_attribute(Vector<StringView> | |||
| 
 | ||||
| // 12.4.3 Get Element Property, https://w3c.github.io/webdriver/#dfn-get-element-property
 | ||||
| // GET /session/{session id}/element/{element id}/property/{name}
 | ||||
| Web::WebDriver::Response Client::handle_get_element_property(Vector<StringView> const& parameters, JsonValue const& payload) | ||||
| Web::WebDriver::Response Client::handle_get_element_property(Vector<StringView> const& parameters, JsonValue const&) | ||||
| { | ||||
|     dbgln_if(WEBDRIVER_DEBUG, "Handling GET /session/<session_id>/element/<element_id>/property/<name>"); | ||||
|     auto* session = TRY(find_session_with_id(parameters[0])); | ||||
|     auto result = TRY(session->get_element_property(payload, parameters[1], parameters[2])); | ||||
|     return make_json_value(result); | ||||
|     return session->web_content_connection().get_element_property(parameters[1], parameters[2]); | ||||
| } | ||||
| 
 | ||||
| // 12.4.4 Get Element CSS Value, https://w3c.github.io/webdriver/#dfn-get-element-css-value
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Timothy Flynn
						Timothy Flynn